summaryrefslogtreecommitdiff
path: root/lisp/textmodes/sgml-mode.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2013-02-21 21:33:42 -0500
committerGlenn Morris <rgm@gnu.org>2013-02-21 21:33:42 -0500
commit2c7d2007671a661f7b147b0e80f60bfe9271e071 (patch)
treee307d9e8960c0e34196205b65030a2a66fe2977f /lisp/textmodes/sgml-mode.el
parent5c11fc55ce8c105d8e41eaa94a481542ca4cea20 (diff)
downloademacs-2c7d2007671a661f7b147b0e80f60bfe9271e071.tar.gz
Use derived-mode-p in previous change
Diffstat (limited to 'lisp/textmodes/sgml-mode.el')
-rw-r--r--lisp/textmodes/sgml-mode.el2
1 files changed, 1 insertions, 1 deletions
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)))