[H-GEN] emacs + jde + debian + kde = no syntax hilite

Jason Henry Parker jasonp at uq.net.au
Tue Apr 17 09:56:03 EDT 2001


[ Humbug *General* list - semi-serious discussions about Humbug and  ]
[ Unix-related topics.  Please observe the list's charter.           ]
[ Worthwhile understanding: http://www.humbug.org.au/netiquette.html ]

Sarah Hollings <sarahhollings at optushome.com.au> writes:

> Just a break from slagging browsers for an Emacs help request.  And
> Jason, I note you withhold some of your vituperance for all software
> from Emacs, so perhaps you are a bit more familiar with it than me ;-)

Perhaps.  I'll admit I've never seen this problem before.  Don't ask
me about Perl syntax highlighting unless you're ready for a rant,
though.

> ****** Scenario 2
> %emacs SomeFileThatDoesNotExistYet.java &
> 
>      emacs loads up and displays an error:
> Signalling: (error "Lisp nesting exceeds max-lisp-eval-depth")
>      and then three error lines :
> semantic-bovinate-top-level
> blah
> blah
>     repeated over and over again.

Does it actually say `blah'?  I see your .emacs talks about setting
debug on error; perhaps it'd be a good idea to get a backtrace?  (M-x
toggle-debug-on-error should set that.)

This is what the documentation for the relevant variable says (note
I'm using emacs21, which may be slightly different):

} max-lisp-eval-depth's value is
} 300
} 
} Documentation:
} *Limit on depth in `eval', `apply' and `funcall' before error.
} This limit is to catch infinite recursions for you before they cause
} actual stack overflow in C, which would be fatal for Emacs.
} You can safely make it considerably larger than its default value,
} if that proves inconveniently small.
} 
} You can customize this variable.

You're not running this on NT, are you?  Or running XEmacs?  (I only
insult you by asking because the only mentions of your error message
I've been able to find talk about NTEmacs or XEmacs.)

> Any leads or suggestions greatly appreciated.

Here goes.  (If I'm not helpful, try comp.emacs or the comp.emacs.*
hierarchy.)

> ;; Enable gaudy font highlighting
> (setq font-lock-maximum-decoration t)

This looks pretty suss.  My copy of emacs sez:

} font-lock-maximum-decoration's value is
} t
} 
} Documentation:
} *Maximum decoration level for fontification.
} If nil, use the default decoration (typically the minimum available).
} If t, use the maximum decoration available.
} If a number, use that level of decoration (or if not available the maximum).
} If a list, each element should be a cons pair of the form (MAJOR-MODE . LEVEL),
} where MAJOR-MODE is a symbol or t (meaning the default).  For example:
}  ((c-mode . t) (c++-mode . 2) (t . 1))
} means use the maximum decoration available for buffers in C mode,
} level 2
} decoration for buffers in C++ mode, and level 1 decoration otherwise.
} 
} You can customize this variable.
} 
} Defined in `font-lock'.

(To see this documentation for a variable, use C-h v <varname>.  The
customize interface (click on the work `customize') is fairly obvious,
but probably more than you feel like getting into right now.)

> ;; If you want Emacs to defer loading the JDE until you open a 
> ;; Java file, edit the following line
> (setq defer-loading-jde nil)

What happens if you set this to t instead?  That looks like it will
then not load the jde mode until needed.  I can't see it helping,
though.

Also try commenting out all the font-lock stuff in your .emacs and
turning on font-lock by hand after editing a .java file:

M-x font-lock-mode

jason
-- 
Windows is user-friendly, but with friends like that . . .

--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.



More information about the General mailing list