Latest ecb and cedet!?

Eric M. Ludlam eric at siege-engine.com
Tue Sep 21 08:29:19 EDT 2010


On 09/21/2010 06:59 AM, Michael Sperber wrote:
>
> Thanks for helping with this!
>
> "Eric M. Ludlam"<eric at siege-engine.com>  writes:
>
>> The grammar file (.wy) needs to be put into semantic-grammar-mode.
>> That mode installs parser info into buffer local variables.  Those
>> variables need to be set for semantic-active-p returns true.
>>
>> So it could be that the auto-mode-alist is not setup correctly to
>> install that major-mode on the provided buffer?
>
> I've checked: It's set up correctly.
>
>> How are you debugging this anyway?
>
> With `message' :-)
>
>> Things just worked for me when done interactively.
>
> Maybe that's the issue:  The problem is that, for `semantic-active-p' to
> return true, `semantic-new-buffer-fcn' needs to run, and it does this
> via `mode-local':
>
> (add-hook 'mode-local-init-hook 'semantic-new-buffer-fcn)
>
> `mode-local-init-hook' runs off `mode-local-post-major-mode-change',
> which in turn runs off `post-command-hook' after
> `change-major-mode-hook'.  ... and `post-command-hook' does not seem to
> run at this point in the batch build process.
>
> Does this make any kind of sense?

That's a good bit of sleuthing.  That is indeed how mode-local works. 
It also runs it's change major mode hook on find-file-hook, and 
change-major-mode-hook.  Do none of these run in XEmacs in batch mode?

Eric



More information about the XEmacs-Beta mailing list