>>> ludo@... (Ludovic =?iso-8859-1?Q?Court=E8s?=) seems to think that:
>When upgrading Emacs (I'm using CVS HEAD), I stumbled upon the infamous
>"Buffer XXX was not set up for parsing" error. Apparently, this happens
>only when one of Semantic's entry points (e.g., `senator-minor-mode') is
>invoked from a mode hook (e.g., `c-mode-hook'). Removing the invocation
>from the mode hook and typing `M-x senator-minor-mode' in an open buffer
>apparently reproducibly works.
>Any idea on how to nail it down and fix it?
[ ... ]
Enabling something like senator-minor-mode should not be done in the
mode hook. All the various minor modes can be enabled via the
If you are trying to enable some of the Semantic features only for
certain modes, then the parser setup code should be removed from the
mode hook instead.
The chain of events is:
If you put senator-mode into the FOO-mode-hook, and if it happens to
run BEFORE semantic-default-FOO-setup, then you will get that error.
Does that make sense?
Eric Ludlam: eric@...
Siege: http://www.siege-engine.com Emacs: http://cedet.sourceforge.net