Jon,

> Yep, that did it.  How come -3 doesn't work anymore?  Are these now
> ignored?

No, java-font-lock-keywords-3 are included in
java-font-lock-keywords-4 which is setup when the JDE is loaded.  So
if you add new keywords in java-font-lock-keywords-3 (I suppose in a
jde-mode-hook) java-font-lock-keywords-4 is not modified and your new
keywords are ignored!

But I think if you add your new keywords before loading the JDE it
should work.

Also notice that jde-java-font-lock.el don't use
java-font-lock-keywords-1 in both Emacs and XEmacs nor use
java-font-lock-keywords-2 on Emacs.  It provides its own enhanced
keyword regexps.

You can always use the default keywords provided by font-lock if you
add the following to `jde-mode-hook' like this:

(defun my-jde-mode-font-lock ()
  ;; Use java-font-lock-keywords-3
  (setq font-lock-maximum-decoration 3)
  (if (featurep 'xemacs)
      (font-lock-recompute-variables)))

(add-hook 'jde-mode-hook #'my-jde-mode-font-lock t)


Hope this helps.

Sincerely,
David
__________________________________________________________________
Get your own FREE, personal Netscape Webmail account today at 
http://webmail.netscape.com/

Reply via email to