>>>>> "rtollert" == rtollert  <[EMAIL PROTECTED]> writes:


  rtollert> My setup is JDE 2.1.5 on Emacs 20.4 on red hat 6.1. JDE
  rtollert> was installed by extracting jde-latest.tar.gz into
  rtollert> /usr/share/emacs/site-lisp/, as root.  BTW, I tried the
  rtollert> latest JDE beta too - same problem.

  rtollert> My messages buffer is probably the most telling. Every
  rtollert> java file I open, I get an error like this:

  rtollert> ---------------------------

  rtollert> Fontifying
  rtollert> TestServerUpdateTransmitter.java... (regexps.............)
  rtollert> File mode specification error: (void-variable *) [2 times]

  rtollert> ---------------------------

  rtollert> Unfortunately I lack the emacs skill necessary to track
  rtollert> this error[s] down the stack, beyond the obvious stuff
  rtollert> about normal-mode calls that I looked up online. From my
  rtollert> limited comprehension of the Emacs major mode system, it
  rtollert> looks like JDE borks when it tries to assert its modeship
  rtollert> over the file. Some help would be gladly appreciated here
  rtollert> :)

            The File Mode Specification Error comes up when emacs
throws an error when trying to set the default mode for a given file
type. In this case when it is trying to get into jde-mode. In this
case the error is almost certainly in your own .emacs because JDE
doesnt have this problem. To test this out you could temporarily
replace your .emacs with the minimial .emacs given on the JDE website,
either by changing the name of your current .emacs, or using the
command lines switches -q and -l (name of .emacs file). This tends to
be good practice. Emacs problems often occur as the result of the
users own customisation. 

        In your case "void-variable *" means you are trying to address
the symbol "*" as a variable. I would suspect that the problem is in
here...

(defun tollerton-mode-hook ()
    (c-set-style "k&r")                 ; use K&R indenting style
    (c-toggle-auto-hungry-state 1)      ; delete all whitespace after
                                        ; cursor
    (c-toggle-auto-state 0)               ; no autonewlines
    (define-key c-mode-map "\C-m" 'newline-and-indent)
    (c-set-offset 'arglist-cont-nonempty *)) =20
                          ^^^^^^^^^^^^^^^^^^

           As far as I know the second argument to c-set-offset 
should be a number (or a variable evaluating to a number!). Certainly
evaluating this line gives me a "void variable" warning.  Try removing
this line and see whether it works now.

         Cheers 

         Phil
                          

Reply via email to