yoya / js2-mode

Automatically exported from code.google.com/p/js2-mode
0 stars 0 forks source link

byte-compile failed in emacs 21 #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In emacs 21, byte-compile fails with the following error:

Compiling file /root/svn/mercury/lib/conf/elisp/js2.el at Mon Mar 31
08:02:08 2008
  !! File error (("Cannot open load file" "cc-defs.el"))

Locate finds /usr/share/emacs/21.4/lisp/progmodes/cc-defs.elc, which is in
the emacs load-path. 

Downloading http://cc-mode.sourceforge.net/src/cc-defs.el seems to fix the
issue.

Original issue reported on code.google.com by psanf...@gmail.com on 31 Mar 2008 at 3:19

GoogleCodeExporter commented 8 years ago
Must be an older version of Emacs 21, since cc-defs.el is packaged with Emacs 
21.3,
the version I'm using.

Strongly recommend upgrading to Emacs 22+ in any case.

Original comment by steve.ye...@gmail.com on 14 Apr 2008 at 10:08

GoogleCodeExporter commented 8 years ago
Just for the record, I had the same issue in Emacs 21.4.1, cc-defs.elc was in 
the
load-path, but cc-defs.el was not.  psanford's fix worked for me, so wontfix 
seems
like about right.

Original comment by jwin...@gmail.com on 23 Apr 2008 at 8:59