On 03/12/2010 01:15 AM, Justin Delegard wrote:
> I had written a mode using the define-generic-mode routine. It worked great until I started using CEDET. It changed my custom mode so that every line is a comment. If I remove all the comment lines, it works alright. It's definitely something up with CEDET/semantic, since when I don't load them my major mode works fine.
> Does anyone have any ideas what could be up with this?
> Here's my CEDET related code at the beginning of my .emacs file:
> (load "path/to/cedet.el")
> (require 'semantic-ia)
I guess it depends on what the generic mode is, and if you inherited
You probably can use the debugger on semantic-new-buffer-fcn, and see
what it does when you open a new buffer in your mode to get a hint as to
what is going on.
If it isn't that, check mode-local-post-major-mode-change to see if that
is an issue.