From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: Re: HELP with cc-mode and emacs Date: Tue, 12 Jun 2007 16:55:09 +0100 Message-ID: <20070612155509.GA3034@muc.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1181658656 18998 80.91.229.12 (12 Jun 2007 14:30:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Jun 2007 14:30:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 12 16:30:54 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 1Hy7OX-0007BV-Mh for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jun 2007 16:30:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hy7OX-000518-7d for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jun 2007 10:30:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hy7NE-0003W3-NT for help-gnu-emacs@gnu.org; Tue, 12 Jun 2007 10:29:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hy7NE-0003UQ-3f for help-gnu-emacs@gnu.org; Tue, 12 Jun 2007 10:29:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hy7ND-0003TR-I6 for help-gnu-emacs@gnu.org; Tue, 12 Jun 2007 10:29:31 -0400 Original-Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hy7NC-0003Oq-Tr for help-gnu-emacs@gnu.org; Tue, 12 Jun 2007 10:29:31 -0400 Original-Received: (qmail 99091 invoked by uid 3782); 12 Jun 2007 14:29:28 -0000 Original-Received: from acm.muc.de (p54A3D656.dip.t-dialin.net [84.163.214.86]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Tue, 12 Jun 2007 16:29:27 +0200 Original-Received: (qmail 7101 invoked by uid 1000); 12 Jun 2007 15:55:09 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-kernel: FreeBSD 4.6-4.9 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:44936 Archived-At: > Hi all > I downloaded the latest version of cc-mode (5.31.3) from http://cc- > mode.sourceforge.net/. Stuck the files in a sub-dir and compiled per > the instructions > "emacs -batch -no-site-file -q -f batch-byte-compile cc-*.el" > Got the following errors: > Loading /usr/libexec/emacs/21.3/x86_64-redhat-linux/fns-21.3.1.el > (source)... > Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-align.elc > Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-awk.elc > Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-bytecomp.elc > Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-cmds.elc > Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-compat.elc > While compiling the end of the data in file /net/wally/home/cfoster/.cc- mode-5.31.3/cc-defs.el: > ** The function `delete-duplicates' might not be defined at runtime. > ** The function `font-lock-compile-keywords' is not known to be > defined. > Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-defs.elc > Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-engine.elc > Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-fix.elc > Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-fonts.elc > While compiling the end of the data in file /net/wally/home/cfoster/.cc- mode-5.31.3/cc-guess.el: > ** The following functions are not known to be defined: > make-progress-reporter, progress-reporter-update, > progress-reporter-done > Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-guess.elc > Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-langs.elc > Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-lobotomy.elc > Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-menus.elc > Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-mode.elc > Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-styles.elc > Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-subword.elc > Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-vars.elc > Done These messages aren't errors, they're just informational messages. Some of them are XEmacs functions (CC Mode is intended to work with both GNU Emacs and XEmacs), the other one (delete-duplicates) is a "CL" function. (In the "Common Lisp" extension of Emacs Lisp). It looks like your CC Mode has been properly compiled. :-) (Incidentally, it is usually helpful to state what Emacs you're building on (M-x emacs-version), although here it seems clear you're using GNU Emacs 21.3) > So, of course .... ??? :-) > ... it blows up during the load of the .emacs.el file with the > following error: > (emacs .emacs.el) > Loading disp-table...done > Loading tool-bar...done > Loading image...done > Loading tooltip...done > Loading /usr/share/emacs/site-lisp/site-start.d/iiimecf-init.el > (source)...done [ quite a few more of the same snipped. ] > Loading /usr/share/emacs/site-lisp/site-start.d/ruby-mode-init.el > (source)...done > An error has occurred while loading `/net/wally/home/cfoster/.emacs.el': > End of file during parsing: "/net/wally/home/cfoster/.emacs.el" That looks like you've got too few ")"s in your .emacs.el. Presumably you've just edited this file to put your .cc-mode-5.3.1.1 directory into load-path. Check that your last change to .emacs.el was syntactically correct. You can do this with "emacs -q" followed by loading your .emacs.el with C-x C-f and looking at it. Alternatively ..... > To ensure normal operation, you should investigate the cause > of the error in your initialization file and remove it. Start > Emacs with the `--debug-init' option to view a complete error > backtrace ..... you can use "emacs --debug-init", like the error messages says. This should give you something to go by, or at least something you can post here if it doesn't seem to make any sense. > Any help is greatly appreciated. Thanks in advance!! We'll have you up and running in no time. :-) > Chris Foster -- Alan Mackenzie (Ittersbach, Germany).