At 08:03 AM 9/21/99 -0400, you wrote:
>
>
>Paul Kinnucan wrote:
>
>> At 02:13 PM 9/20/99 -0400, Kevin Delia wrote:
>> >Hello,
>> >
>> >    Has anyone experienced the following?  I just upgraded to 20.4 and
>> >when I attempt to load a Java file, I get the following error:
>> >
>> >Fontifying NBSearchDialog.java...
>> >Fontifying NBSearchDialog.java... (regexps.............)
>> >Symbol's value as variable is void: c-Java-inexpr-class-key
>> >
>> > I am still running 20.3.1 and have never seen this (haven't seen it
>> >with any other version of NT Emacs or JDE).  I am using the same version
>> >of JDE with both releases...
>> >
>>
>> Check your load-path. It probably contains an obsolete version of cc-mode.
>
>("c:/emacs-20.4/site-lisp" "c:/emacs-20.4/lisp"
"c:/emacs-20.4/lisp/textmodes"
>"c:/emacs-20.4/lisp/progmodes" "c:/emacs-20.4/lisp/play"
>"c:/emacs-20.4/lisp/mail" "c:/emacs-20.4/lisp/language"
>"c:/emacs-20.4/lisp/international" "c:/emacs-20.4/lisp/gnus"
>"c:/emacs-20.4/lisp/emulation" "c:/emacs-20.4/lisp/emacs-lisp"
>"c:/emacs-20.4/lisp/calendar" "c:/emacs-20.4/site-lisp/jde-2.1.5")
>
>The problem file is in cc-langs.el, the one that is supplied with 20.4 - I
>haven't done anything other than unpack the distribution.  Here is the
line in
>question:
>
>(defconst c-Java-inexpr-class-key "\\<new\\>")
>
>It is also referenced in cc-mode.el
>
> c-inexpr-class-key c-Java-inexpr-class-key
>
>Is anyone else having this problem...
>


I've been using 20.4 for more than a month without this problem or any other.

c-inexpr-class-key is a regular expression used by cc-mode to indent
anonymous innner class definitions. This is a new feature introduced by the
version of cc-mode shipped with 20.4.

The fact that you are getting a void variable error for c-inexpr-class-key
means that it is not being defined. The fact that it is not being defined
means that the defconst statement in cc-langs.el is not being executed. The
fact that the defconst statement is not being executed means that the
version of cc-langs.el distributed with 20.4 is not being loaded. The fact
that cc-langs.el is not being loaded means that another version is being
loaded instead. That is why I asked you in my previous message to check
your load-path to make sure that an obsolete version of cc-mode is not
shadowing the 20.4 version.

Did you do this?

- Paul

Reply via email to