[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CEDET merge
From: |
Chong Yidong |
Subject: |
Re: CEDET merge |
Date: |
Sun, 04 Oct 2009 10:37:14 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
"Eric M. Ludlam" <address@hidden> writes:
> Of course, that change would force mode-local to start up, which would
> then enable any other similarly configured mode.
I'm not sure what this point is. Loading Semantic already loads
mode-local, because semantic-fw.el (or semantic/fw.el for Emacs CEDET)
needs it.
> How could semantic-mode add something to Emacs' running environment to
> dynamically load in a language's support file? Would that still be
> via mode-hooks?
I was thinking something like this:
(defcustom semantic-new-buffer-setup-functions
'((js-mode . wisent-javascript-setup-parser)
(java-mode . wisent-java-default-setup)
...))
(defun semantic-new-buffer-fcn ()
(let ((entry (assq major-mode semantic-new-buffer-setup-functions)))
(when entry
(funcall (cdr entry))))
... do the stuff we normally do)
The point is to avoid running the setup-parser functions in the mode
hooks, because semantic-mode may not be enabled (and the solution used
upstream, adding it to mode hooks via autoloads, is not acceptable
either because there's then no convenient way to disable Semantic).
- Re: Problems with EDE, (continued)
- Re: Problems with EDE, Eric M. Ludlam, 2009/10/09
- Re: Problems with EDE, Chong Yidong, 2009/10/08
- Re: CEDET merge, Chong Yidong, 2009/10/03
- Re: CEDET merge, Eric M. Ludlam, 2009/10/03
- Re: CEDET merge, Chong Yidong, 2009/10/03
- Re: CEDET merge, Eric M. Ludlam, 2009/10/03
- Re: CEDET merge, Chong Yidong, 2009/10/04
- Re: CEDET merge, Eric M. Ludlam, 2009/10/04
- Re: CEDET merge,
Chong Yidong <=
- Re: CEDET merge, Eric M. Ludlam, 2009/10/04
Re: CEDET merge, Eric M. Ludlam, 2009/10/01
Re: CEDET merge, Phil Hagelberg, 2009/10/06