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
2004-02-25 David Ponce <[EMAIL PROTECTED]>
* jde-java-font-lock.el (jde-java-font-lock-keywords-default):
Use `equal' instead of `char-equal' to avoid error when
char-after returns nil.
Index: jde-java-font-lock.el
===================================================================
RCS file: /pack/anoncvs/jde/lisp/jde-java-font-lock.el,v
retrieving revision 1.19
diff -c -r1.19 jde-java-font-lock.el
*** jde-java-font-lock.el 2003/07/15 11:58:45 1.19
--- jde-java-font-lock.el 2004/02/25 08:33:07
***************
*** 858,870 ****
;; Fontify import directives
'("\\<\\(import\\)\\>\\s-+\\(\\sw+\\)"
(1 font-lock-keyword-face)
! (2 (if (char-equal (char-after (match-end 0)) ?\.)
'jde-java-font-lock-package-face
'font-lock-type-face))
("\\=\\.\\(\\*\\|\\sw+\\)" nil nil
! (1 (if (char-equal (char-after (match-end 0)) ?\.)
'jde-java-font-lock-package-face
! (if (char-equal (char-before (match-end 0)) ?\*)
'jde-java-font-lock-number-face
'font-lock-type-face)))))
)
--- 858,870 ----
;; Fontify import directives
'("\\<\\(import\\)\\>\\s-+\\(\\sw+\\)"
(1 font-lock-keyword-face)
! (2 (if (equal (char-after (match-end 0)) ?\.)
'jde-java-font-lock-package-face
'font-lock-type-face))
("\\=\\.\\(\\*\\|\\sw+\\)" nil nil
! (1 (if (equal (char-after (match-end 0)) ?\.)
'jde-java-font-lock-package-face
! (if (equal (char-before (match-end 0)) ?\*)
'jde-java-font-lock-number-face
'font-lock-type-face)))))
)