Latest ecb and cedet!?

Michael Sperber sperber at deinprogramm.de
Tue Sep 21 06:59:24 EDT 2010


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?

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla



More information about the XEmacs-Beta mailing list