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

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

Re: autoload semantic error


From: Hadron
Subject: Re: autoload semantic error
Date: Wed, 22 Aug 2007 12:47:29 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (gnu/linux)

pzehnder <philipp.zehnder@gmail.com> writes:

> 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")
>

I get no such errors using the latest cedet packages.


-- 
It is surely a great calamity for a human being to have no obsessions.
                -- Robert Bly


reply via email to

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