On the subject of font lock changes, I did a little hacking
because XEmacs 21.4.10 doesn't work with the new JDEE
2.3.3 (anyone else with this problem?)  I made the
following updates:

- XEmacs 21.4.10 needs emacs-minor-version compare `<=' from
  `<' for xemacs compares for
  jde-java-font-lock-html-tag-regexp (line 433).

- Added a customizable variable
  `jde-java-font-lock-use-cc-fonts' that lets you use the
  old JDEE fonts if you want.  I think the JDEE fonts are
  much richer and more appropriate for Java so I wanted a
  way to back to them.  The default is to use the cc-fonts
  so folks use to JDEE 2.3.3 won't see any difference in
  behavior.

- I'm still use to the old java-mode fonts that gave
  different colors to private, protected, and public
  modifiers.  So I added these three fonts:
  - jde-java-font-lock-private-face
  - jde-java-font-lock-protected-face
  - jde-java-font-lock-public-face




========================================
118a119,125
> 
> (defcustom jde-java-font-lock-use-cc-fonts t
>   "*As of version 5.30, cc-mode provides its own set of font lock keywords and
> faces for Java: cc-fonts.  The JDEE now uses cc-fonts if defined and this is
> set."
>   :group 'jde-project
>   :type 'boolean)
195a203,232
> (defface jde-java-font-lock-private-face
>   '((((type tty) (class color)) (:foreground "blue" :weight light))
>     (((class grayscale) (background light)) (:foreground "LightGray" :bold t))
>     (((class grayscale) (background dark)) (:foreground "DimGray" :bold t))
>     (((class color) (background light)) (:foreground "Orchid"))
>     (((class color) (background dark)) (:foreground "LightSteelBlue"))
>     (t (:bold t)))
>   "Font Lock Mode face used to highlight private access."
>   :group 'jde-java-font-lock-faces)
> 
> (defface jde-java-font-lock-protected-face
>   '((((type tty) (class color)) (:foreground "blue" :weight light))
>     (((class grayscale) (background light)) (:foreground "LightGray" :bold t))
>     (((class grayscale) (background dark)) (:foreground "DimGray" :bold t))
>     (((class color) (background light)) (:foreground "Orchid"))
>     (((class color) (background dark)) (:foreground "LightSteelBlue"))
>     (t (:bold t)))
>   "Font Lock Mode face used to highlight protected access."
>   :group 'jde-java-font-lock-faces)
> 
> (defface jde-java-font-lock-public-face
>   '((((type tty) (class color)) (:foreground "blue" :weight light))
>     (((class grayscale) (background light)) (:foreground "LightGray" :bold t))
>     (((class grayscale) (background dark)) (:foreground "DimGray" :bold t))
>     (((class color) (background light)) (:foreground "Orchid"))
>     (((class color) (background dark)) (:foreground "LightSteelBlue"))
>     (t (:bold t)))
>   "Font Lock Mode face used to highlight public access."
>   :group 'jde-java-font-lock-faces)
> 
231a269,274
> (defvar jde-java-font-lock-private-face         'jde-java-font-lock-private-face
>   "Face name to use for private modifiers.")
> (defvar jde-java-font-lock-protected-face 'jde-java-font-lock-protected-face
>   "Face name to use for protected modifiers.")
> (defvar jde-java-font-lock-public-face    'jde-java-font-lock-public-face
>   "Face name to use for public modifiers.")
281,283c324,327
<                           "private"
<                           "protected"
<                           "public"
---
>                         ;;; removed after making each its own font -PaulL
>                           ;;"private"
>                           ;;"protected"
>                           ;;"public"
433c477
<                                        (< emacs-minor-version 4))))
---
>                                        (<= emacs-minor-version 4))))
869a914,918
> 
>     ;; modifier protections
>     '("\\<\\(private\\)\\>" (1 jde-java-font-lock-private-face))
>     '("\\<\\(protected\\)\\>" (1 jde-java-font-lock-protected-face))
>     '("\\<\\(public\\)\\>" (1 jde-java-font-lock-public-face))
958c1007,1008
<         (if (featurep 'cc-fonts)
---
>         (if (and (featurep 'cc-fonts)
>                jde-java-font-lock-use-cc-fonts)
1023a1074,1077
> ;; Revision 1.20  2003/13/12 20:38:00  paull
> ;; Added customization ability to use or not use new cc 5.30 cc-mode fonts.
> ;; Added new modifier protection level fonts.
> ;;
========================================


David PONCE writes:
 > Hi Ryan,
 > 
 > [...]
 > >    I've been receiving the error below as I write my import statements in
 > > a java source file.  For example, I will open a new file, type 
 > > 
 > > import j
 > > 
 > > right after I type j, I receive the following in a Debug buffer
 > > 
 > > Debugger entered--Lisp error: (wrong-type-argument integerp nil)
 > [...]
 > 
 > I reproduced the bug.  Here is a patch that should fix it.
 > Perhaps a JDEE developer can commit it?
 > 
 > Sincerely,
 > David
 > 
[ snip -pl ]

-- 
Paul Landes
[EMAIL PROTECTED]

Reply via email to