help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: autoload semantic error


From: pzehnder
Subject: Re: autoload semantic error
Date: Wed, 22 Aug 2007 03:19:21 -0700
User-agent: G2/1.0

On Aug 21, 7:44 pm, Benjamin Gramlich <benjamin.graml...@gmail.com>
wrote:
> Greetings,
>
> I've encountered an error that no amount of searching has helped me
> resolve. When I load a .c file normally I get this error:
>
> File mode specification error: (error "Autoloading failed to define
> function semantic-default-c-setup")
>
> When I try parse a php buffer in MMM-mode, I get the same error. I've
> turn on the toggle-debug-on-error, and was able to click on the
> semantic-default-c-setup function. Which brought me to semantic-c.el in
> the directory /usr/share/emacs/site-lisp/cedet/semantic/bovine. I have
> cedet installed because I use the JDE.
>
> Also, here is the function definition from semantic-c.el:
>
> ;;;###autoload
> (defun semantic-default-c-setup ()
>   "Set up a buffer for semantic parsing of the C language."
>   (semantic-c-by--install-parser)
>   (setq semantic-lex-syntax-modifications '((?> ".")
>                                             (?< ".")
>                                             )
>         )
>
>   (setq semantic-lex-analyzer #'semantic-c-lexer)
>   (setq semantic-lex-spp-macro-symbol-obarray
>         (semantic-lex-make-spp-table semantic-lex-c-preprocessor-symbol-map))
>   (add-hook 'semantic-lex-reset-hooks 'semantic-lex-spp-reset-hook nil
> t)
>   )
>
> Thank you for your time,
>
> Benjamin Gramlich

Try putting this in your .emacs file:

(load-file "/usr/share/emacs/site-lisp/cedet/semantic/bovine/semantic-
c.el")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]