I have encountered the same problem.  Look for two lines in your prj.el file
that look something like:

    '(jde-bug-key-bindings (quote (("[?^C ? ?^S]" . jde-bug-step-over)
("[?^C ? ?^X]" .
    jde-bug-step-into) ("[?^C ? ?^A]" . jde-bug-step-into-all) ("[?^C ?
?^W]" .
    jde-bug-step-out) ("[?^C ? ?C]" . jde-bug-continue) ("[?^C ? ?^B]" .
    jde-bug-toggle-breakpoint))))

and

    '(jde-key-bindings (quote (("[?^C ?^V ?^A]" . jde-run-menu-run-applet)
    ("[?^C ?^V ?^B]" . jde-build) ("[?^C ?^V ?^C]" . jde-compile) ("[?^C ?^V
?^D]" .
    jde-debug) ("[?^C ?^V ?^F]" . jde-wiz-implement-interface) ("[?^C ?^V
?j]" .
    jde-javadoc-generate-javadoc-template) ("[?^C ?^V ?^K]" . bsh) ("[?^C
?^V ?^L]" .
    jde-gen-println) ("[?^C ?^V ?^N]" . jde-browse-jdk-doc) ("[?^C ?^V ?^P]"
.
    jde-save-project) ("[?^C ?^V ?^Q]" . jde-wiz-update-class-list) ("[?^C
?^V ?^R]" .
    jde-run) ("[?^C ?^V ?^S]" . speedbar-frame-mode) ("[?^C ?^V ?^T]" .
    jde-db-menu-debug-applet) ("[?^C ?^V ?^W]" . jde-help-symbol) ("[?^C ?^V
?^Y]" .
    jde-show-class-source) ("[?^C ?^V ?]" . jde-wiz-find-and-import)
("[(control c)
    (control v) (control ?.)]" . jde-complete-at-point-menu) ("[(control c)
(control v)
    ?.]" . jde-complete-at-point))))

In particular, look for key bindings in the first statement that look like
[?^C ? ?^S](i.e. no key specified after the second "?" in the expression)
and in the second statement that look like [?^C ?^V ?] (i.e. no key
specified after the third "?" in the expression.

In my case the problem was Microsoft Visual SourceSafe.  Whenever I would
check a prj.el file into SourceSafe, it would strip the "^Z" for those
expressions which corrupts the file.

The lines should read something like:

    '(jde-bug-key-bindings (quote (("[?^C ?^Z ?^S]" . jde-bug-step-over)
("[?^C ?^Z ?^X]" .
    jde-bug-step-into) ("[?^C ?^Z ?^A]" . jde-bug-step-into-all) ("[?^C ?^Z
?^W]" .
    jde-bug-step-out) ("[?^C ?^Z ?C]" . jde-bug-continue) ("[?^C ?^Z ?^B]" .

    jde-bug-toggle-breakpoint))))

and

    '(jde-key-bindings (quote (("[?^C ?^V ?^A]" . jde-run-menu-run-applet)
    ("[?^C ?^V ?^B]" . jde-build) ("[?^C ?^V ?^C]" . jde-compile) ("[?^C ?^V
?^D]" .
    jde-debug) ("[?^C ?^V ?^F]" . jde-wiz-implement-interface) ("[?^C ?^V
?j]" .
    jde-javadoc-generate-javadoc-template) ("[?^C ?^V ?^K]" . bsh) ("[?^C
?^V ?^L]" .
    jde-gen-println) ("[?^C ?^V ?^N]" . jde-browse-jdk-doc) ("[?^C ?^V ?^P]"
.
    jde-save-project) ("[?^C ?^V ?^Q]" . jde-wiz-update-class-list) ("[?^C
?^V ?^R]" .
    jde-run) ("[?^C ?^V ?^S]" . speedbar-frame-mode) ("[?^C ?^V ?^T]" .
    jde-db-menu-debug-applet) ("[?^C ?^V ?^W]" . jde-help-symbol) ("[?^C ?^V
?^Y]" .
    jde-show-class-source) ("[?^C ?^V ?^Z]" . jde-wiz-find-and-import)
("[(control c)
    (control v) (control ?.)]" . jde-complete-at-point-menu) ("[(control c)
(control v)
    ?.]" . jde-complete-at-point))))

In other words, change all the [?^C ? ?^S] occurrences in the first
statement to look like
[?^C ?^Z ?^S] and the [?^C ?^V ?] in the second statement to look like [?^C
?^V ?^Z].

After repairing (or regenerating) prj.el, I specified all my prj.el files as
binary (instead of text) files in SourceSafe.

Hope this helps.

--
Chris Britton
[EMAIL PROTECTED]


-----Original Message-----
From: Niranjan Rao [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 11, 2000 1:42 PM
To: [EMAIL PROTECTED]
Subject: File mode specification error


I use JDE version 2.2.6beta7 on NT 4.0 using GNU Emacs version 20.7.1.

I get file mode specification error intermittently. Following is the trace
from *Messages* buffer.
Turning on debug-on-error did not help. The Java file in question compiles
fine other wise. Even brace matching shows everything is fine as it
sometimes fails if there are commented braces. Is there any other reason why
I am getting this error. Should I be setting some other variable to debug
this problem.

The file mode is set to JDE  that is mode line shows JDE but it looses the
mode specific key bindings and font locking.
Same settings work fine with other files in or out of JDE project.

Thanks for help.

- Niranjan

Entries from *Message* buffer

Debug on Error enabled
Loading d:/NewChanges/prj.el (source)...
File mode specification error: (end-of-file)
Scanning buffer for index (  0%)
Scanning buffer for index (  8%)
Scanning buffer for index ( 14%)
Scanning buffer for index ( 21%)
Scanning buffer for index ( 31%)
Scanning buffer for index ( 37%)
Scanning buffer for index ( 45%)
Scanning buffer for index ( 53%)
Scanning buffer for index ( 60%)
Scanning buffer for index ( 68%)
Scanning buffer for index ( 74%)
Scanning buffer for index ( 81%)
Scanning buffer for index ( 88%)
Scanning buffer for index (100%)

Reply via email to