From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hadron Newsgroups: gmane.emacs.help Subject: Re: autoload semantic error Date: Wed, 22 Aug 2007 12:47:29 +0200 Organization: http://en.wikipedia.org/wiki/Quark Message-ID: <5c7innzvzy.fsf@homelinux.net> References: <1187777961.198657.217200@i38g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187782840 28255 80.91.229.12 (22 Aug 2007 11:40:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Aug 2007 11:40:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 22 13:40:37 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1INoZd-0000Xb-9E for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Aug 2007 13:40:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INoZc-000509-Qy for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Aug 2007 07:40:32 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 52 Original-X-Trace: individual.net wM1+bEl0IIMwUb1Hd3LCLgdfP2kZ9mXb045rjLfKtdEU04iFLA X-Orig-Path: news.individual.net!news Cancel-Lock: sha1:vVn+SOFEq9i1hZf9piN3C4qeaFI= sha1:Ahc2mv+fZZH9FMVJLGrhCOTTGoA= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUPDQ1bVEeWcSHosxDD ojimpJ76+vnczqjhNce/AAAACXBIWXMAAABIAAAASABGyWs+AAAB6UlEQVQ4y22UvW4TQRDHf7P2 paG4vSTuDwMlQgJRUfiIEC22gqnT2G/AcySU4AJTX4EfgMI8AMISdRTTEpRdu/MHWYq9r/g8zWr3 d/+Z2ZnZU8PCBv1+uRkqcnOjNB3ZYlsAGQEu1TWwBhB3UQOhXzY1MAZwOL0LcpvXQAQSwbQGhl15 PyiVBQg+CX8+d7E1hUPbv3sUL5Jf7cXBtA6mzZDl4z2K5CeAxu2/h2VbD251dEQQ6t0Yz5wT3dvY i7vALQ5Pj56GzaKMOdgcMMcgGmerQMZvXBQBZzCpghU6T4u1roCxeCAt4EMJNjBHQG5/a1iVwNDS OHASdr2/IqskW6WFD+/BJMhbzVLA5cAhZWVC2OZgSyGApKIwnO0WGQXIpOg0EJe1Wlc95YPls1pQ MwXQ1vruaexBI7r/pTj7MQMBFBJdIasiuo6hMQPF5TcLcf5iBAtPLCi5Ami6cw9urWo/QED5VF28 8c4OtWjNVhfV1dn838wR4Dsqe0KNoAtA6i++nSnJbnoCwD2bpZeof1k61xbk+jyrjlRGNE3Tj1+z xjRPrJIw+8gZA7g50OxYlDx/6YwFS9SLelHkENOxoDDLR6cuNOZdv9Vv9bvW3DzMp8QtXmnz2jsM EoK47AfHg+yXwfHbDgD/AWsIohF8qgD0AAAAGnpUWHRKUEVHLUNvbG9yc3BhY2UAAHjaMwIAADMA MxEWfmMAAAAqelRYdEpQRUctU2FtcGxpbmctZmFjdG9ycwAAeNozqjDSMaww1DGsMAQAEYMC6QbE yigAAAAASUVORK5CYII= User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (gnu/linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:151165 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:46738 Archived-At: pzehnder writes: > On Aug 21, 7:44 pm, Benjamin Gramlich > 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