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

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

autoload semantic error


From: Benjamin Gramlich
Subject: autoload semantic error
Date: Tue, 21 Aug 2007 17:44:42 +0000

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





reply via email to

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