From: Tom Tromey Date: Sat, 18 Mar 2017 21:53:56 +0000 (+0100) Subject: change auto-insert to use derived-mode-p X-Git-Tag: emacs-26.0.90~521^2~722 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a2a38790ee2db283a8b9d0b3f3ccc3b7860428a1;p=emacs.git change auto-insert to use derived-mode-p * lisp/autoinsert.el (auto-insert): Use derived-mode-p. --- diff --git a/lisp/autoinsert.el b/lisp/autoinsert.el index 2ca557c52b7..fef42161bf3 100644 --- a/lisp/autoinsert.el +++ b/lisp/autoinsert.el @@ -348,7 +348,7 @@ Matches the visited file name against the elements of `auto-insert-alist'." (setq desc (cdr cond) cond (car cond))) (if (if (symbolp cond) - (eq cond major-mode) + (derived-mode-p cond) (and buffer-file-name (string-match cond buffer-file-name))) (setq action (cdr (car alist))