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:52:55 +0100 Message-ID: <20070612155255.GA2639@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 1181658468 18178 80.91.229.12 (12 Jun 2007 14:27:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Jun 2007 14:27:48 +0000 (UTC) To: gnu-emacs-help@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 12 16:27:45 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 1Hy7LU-0006Mt-Ex for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jun 2007 16:27:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hy7LT-0008Sx-Jh for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jun 2007 10:27:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hy7LA-0008PV-G6 for help-gnu-emacs@gnu.org; Tue, 12 Jun 2007 10:27:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hy7L9-0008OC-PZ for help-gnu-emacs@gnu.org; Tue, 12 Jun 2007 10:27:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hy7L9-0008Nv-MR for help-gnu-emacs@gnu.org; Tue, 12 Jun 2007 10:27:23 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hy7L9-000393-CC for help-gnu-emacs@gnu.org; Tue, 12 Jun 2007 10:27:23 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hy7L9-0005Ts-4s for gnu-emacs-help@gnu.org; Tue, 12 Jun 2007 10:27:23 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Hy7L6-00038b-Q3 for gnu-emacs-help@gnu.org; Tue, 12 Jun 2007 10:27:23 -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 1Hy7L6-000389-4J for gnu-emacs-help@gnu.org; Tue, 12 Jun 2007 10:27:20 -0400 Original-Received: (qmail 96551 invoked by uid 3782); 12 Jun 2007 14:27:17 -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:27:15 +0200 Original-Received: (qmail 7058 invoked by uid 1000); 12 Jun 2007 15:52:55 -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-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:44935 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 They 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).