[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] feature/mhtml-mode 9604256 01/11: change auto-insert to us
From: |
Tom Tromey |
Subject: |
[Emacs-diffs] feature/mhtml-mode 9604256 01/11: change auto-insert to use derived-mode-p |
Date: |
Thu, 23 Mar 2017 23:15:03 -0400 (EDT) |
branch: feature/mhtml-mode
commit 960425660435ac971c64375112e1264bf4ecd54e
Author: Tom Tromey <address@hidden>
Commit: Tom Tromey <address@hidden>
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 2ca557c..fef4216 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))
- [Emacs-diffs] branch feature/mhtml-mode created (now 3499915), Tom Tromey, 2017/03/23
- [Emacs-diffs] feature/mhtml-mode 9604256 01/11: change auto-insert to use derived-mode-p,
Tom Tromey <=
- [Emacs-diffs] feature/mhtml-mode bf7dd0c 03/11: change semantic to use derived-mode-p, Tom Tromey, 2017/03/23
- [Emacs-diffs] feature/mhtml-mode c366e52 07/11: make smie.el respect prog-first-column, Tom Tromey, 2017/03/23
- [Emacs-diffs] feature/mhtml-mode 3adbe84 08/11: make js.el respect prog-first-column, Tom Tromey, 2017/03/23
- [Emacs-diffs] feature/mhtml-mode 6c3ceb6 02/11: change calc to use derived-mode-p, Tom Tromey, 2017/03/23
- [Emacs-diffs] feature/mhtml-mode 2d377d2 04/11: change org to use derived-mode-p, Tom Tromey, 2017/03/23
- [Emacs-diffs] feature/mhtml-mode fe83525 05/11: change align to use derived-mode-p, Tom Tromey, 2017/03/23
- [Emacs-diffs] feature/mhtml-mode 3499915 11/11: enable mhtml-mode by default, Tom Tromey, 2017/03/23
- [Emacs-diffs] feature/mhtml-mode 48f5cbb 09/11: change sgml-mode to help multi-html mode, Tom Tromey, 2017/03/23
- [Emacs-diffs] feature/mhtml-mode 60be4b7 06/11: change viper to use derived-mode-p, Tom Tromey, 2017/03/23
- [Emacs-diffs] feature/mhtml-mode 23e71eb 10/11: add mhtml-mode.el, Tom Tromey, 2017/03/23