From 2c7d2007671a661f7b147b0e80f60bfe9271e071 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 21 Feb 2013 21:33:42 -0500 Subject: [PATCH] Use derived-mode-p in previous change --- lisp/textmodes/sgml-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index a56a924c78c..fb0dc84b0e1 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el @@ -62,7 +62,7 @@ a DOCTYPE or an XML declaration." (set-default sym val) (mapc (lambda (buff) (with-current-buffer buff - (and (eq major-mode 'sgml-mode) + (and (derived-mode-p 'sgml-mode) (not sgml-xml-mode) (setq skeleton-transformation-function val)))) (buffer-list))) -- 2.39.2