diff options
| author | Tom Tromey | 2017-03-18 22:53:56 +0100 |
|---|---|---|
| committer | Tom Tromey | 2017-04-05 15:53:38 -0600 |
| commit | a2a38790ee2db283a8b9d0b3f3ccc3b7860428a1 (patch) | |
| tree | 7d3cf53828bf9790077c02e32186116181965bfd /lisp/autoinsert.el | |
| parent | 0074ed536b560e60f63aead2ac73ec004d0bcfa2 (diff) | |
| download | emacs-a2a38790ee2db283a8b9d0b3f3ccc3b7860428a1.tar.gz emacs-a2a38790ee2db283a8b9d0b3f3ccc3b7860428a1.zip | |
change auto-insert to use derived-mode-p
* lisp/autoinsert.el (auto-insert): Use derived-mode-p.
Diffstat (limited to 'lisp/autoinsert.el')
| -rw-r--r-- | lisp/autoinsert.el | 2 |
1 files changed, 1 insertions, 1 deletions
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'." | |||
| 348 | (setq desc (cdr cond) | 348 | (setq desc (cdr cond) |
| 349 | cond (car cond))) | 349 | cond (car cond))) |
| 350 | (if (if (symbolp cond) | 350 | (if (if (symbolp cond) |
| 351 | (eq cond major-mode) | 351 | (derived-mode-p cond) |
| 352 | (and buffer-file-name | 352 | (and buffer-file-name |
| 353 | (string-match cond buffer-file-name))) | 353 | (string-match cond buffer-file-name))) |
| 354 | (setq action (cdr (car alist)) | 354 | (setq action (cdr (car alist)) |