At 05:03 PM 6/29/99 -0400, Christoph Haenle wrote:
>ok, I found the reason why xemacs won't display the JDE menu. It's because
my
>.java-file has the following first line:
>
>/* -*- java -*- ----------------------------------------------------- */
>
>Is this a bug in jde or xemacs?
>
Neither.
To quote from the Emacs info file:
"You can specify which major mode should be used for editing a certain
file by a special sort of text in the first nonblank line of the file.
The mode name should appear in this line both preceded and followed by
`-*-'. Other text may appear on the line as well. For example,
;-*-Lisp-*-
tells Emacs to use Lisp mode. Such an explicit specification overrides
any defaulting based on the file name. Note how the semicolon is used
to make Lisp treat this line as a comment."
This explains why you were not seeing the jde-mode menus, i.e., Emacs was
loading java-mode rather than jde-mode, based on the first line of your
source file.
- Paul