[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")
- Dired: configure displayed file/folder details, Will, 2007/08/17
- Re: Dired: configure displayed file/folder details, Eli Zaretskii, 2007/08/17
- Re: Dired: configure displayed file/folder details, poppyer, 2007/08/17
- Re: Dired: configure displayed file/folder details, Dieter Wilhelm, 2007/08/21
- RE: Dired: configure displayed file/folder details, Drew Adams, 2007/08/21
- autoload semantic error, Benjamin Gramlich, 2007/08/21
- Message not available
- Re: autoload semantic error,
pzehnder <=
- Re: autoload semantic error, Hadron, 2007/08/22
- Re: autoload semantic error, Benjamin Gramlich, 2007/08/22
- Re: autoload semantic error, Jason Rumney, 2007/08/22
- Re: Dired: configure displayed file/folder details, Stephen Berman, 2007/08/21
- Re: Dired: configure displayed file/folder details, Dieter Wilhelm, 2007/08/23
Message not available