From a2a38790ee2db283a8b9d0b3f3ccc3b7860428a1 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 18 Mar 2017 22:53:56 +0100 Subject: [PATCH] change auto-insert to use derived-mode-p * lisp/autoinsert.el (auto-insert): Use derived-mode-p. --- lisp/autoinsert.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.39.2