change auto-insert to use derived-mode-p
* lisp/autoinsert.el (auto-insert): Use derived-mode-p.
This commit is contained in:
parent
0074ed536b
commit
a2a38790ee
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue