emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] feature/mhtml-mode bf7dd0c 03/11: change semantic to use d


From: Tom Tromey
Subject: [Emacs-diffs] feature/mhtml-mode bf7dd0c 03/11: change semantic to use derived-mode-p
Date: Thu, 23 Mar 2017 23:15:03 -0400 (EDT)

branch: feature/mhtml-mode
commit bf7dd0c7caef360c8b6c44b94646fd9fde73bfb0
Author: Tom Tromey <address@hidden>
Commit: Tom Tromey <address@hidden>

    change semantic to use derived-mode-p
    
    * lisp/cedet/semantic.el (semantic-new-buffer-fcn): Use derived-mode-p.
---
 lisp/cedet/semantic.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/cedet/semantic.el b/lisp/cedet/semantic.el
index bf5bfa8..a3c03dc 100644
--- a/lisp/cedet/semantic.el
+++ b/lisp/cedet/semantic.el
@@ -329,7 +329,7 @@ If the major mode is ready for Semantic, and no
 to use Semantic, and `semantic-init-hook' is run."
   ;; In upstream Semantic, the parser setup functions are called from
   ;; mode hooks.  In the version bundled with Emacs, we do it here.
-  (let ((entry (assq major-mode semantic-new-buffer-setup-functions)))
+  (let ((entry (cl-assoc-if #'derived-mode-p 
semantic-new-buffer-setup-functions)))
     (when entry
       (funcall (cdr entry))))
   ;; Do stuff if semantic was activated by a mode hook in this buffer,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]