]> git.eshelyaron.com Git - emacs.git/commitdiff
Use derived-mode-p in previous change
authorGlenn Morris <rgm@gnu.org>
Fri, 22 Feb 2013 02:33:42 +0000 (21:33 -0500)
committerGlenn Morris <rgm@gnu.org>
Fri, 22 Feb 2013 02:33:42 +0000 (21:33 -0500)
lisp/textmodes/sgml-mode.el

index a56a924c78c33737a933c77d6daa6be29a79fada..fb0dc84b0e190db6934c028b573790851b659edf 100644 (file)
@@ -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)))