On 04/30/2010 01:35 PM, Gary wrote:
> Maybe this is obvious to old^H^H^Hexperienced heads, but is it possible
> to delay loading cedet components until they are really needed? As well
> as programming in emacs I also simply edit emails, make plans in
> orgmode, etc. and if I fire up emacs for one of those tasks I'd rather
> not wait until cedet loads. Sorry, I couldn't find this question even
> being asked anywhere before (which probably means I am weird for wanting
> to do it, but that doesn't stop me wanting to do it).
When you (load "cedet.el") it loads autoload files only. If you then
enable this-mode or that-mode, that is when it begins pulling in more files.
Thus, if you:
and then do nothing else, very little will get pulled in from CEDET
until you call one of the `global-*-mode' functions.
Since all the global mode functions do is add certain hooks to
automatically turn on different kinds of features, you could probably
add those hooks yourself, and get the best of both worlds.
I haven't tried this is years, so it may be that there are some leaks
where code is unnecessarily loaded. If you find any, I would be happy
to fix them.