[Top][All Lists]

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

Re: HELP with cc-mode and emacs

From: Alan Mackenzie
Subject: Re: HELP with cc-mode and emacs
Date: Tue, 12 Jun 2007 16:55:09 +0100
User-agent: Mutt/1.5.9i

> Hi all
>    I downloaded the latest version of cc-mode (5.31.3) from http://cc-
>  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- 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).

reply via email to

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