Hi,
when running JDEE 2.3.3beta6 in XEmacs 21.5beta16 the following error
occurs, when loading a Java file (at least on my machine):

        Wrong type argument: number-char-or-marker-p, nil

This comes from jde-xemacs.el trying to execute the following code:

 (when (and (featurep 'widget)
           (>= emacs-major-version 21)
           (>= emacs-minor-version 4)
           (>= emacs-patch-level 10))
   (require 'efc-xemacs))

But in beta versions of XEmacs it seems that emacs-patch-level is nil.
A snippet from the variable's doc string:

        The value is non-nil if this version of XEmacs is part of a series
of
        stable XEmacsen, but has bug fixes applied.

I came up with the patch at the end of this message that solves the problem
for me.


Cheers,
Christian Schmitt



diff -u h:\lisp\jde-2.3.3beta6\lisp\jde-xemacs.el.orig
h:\lisp\jde-2.3.3beta6\lisp\jde-xemacs.el
--- h:\lisp\jde-2.3.3beta6\lisp\jde-xemacs.el.orig      Thu Oct 02 09:50:20
2003
+++ h:\lisp\jde-2.3.3beta6\lisp\jde-xemacs.el   Thu Oct 02 09:50:20 2003
@@ -112,7 +112,9 @@
 (when (and (featurep 'widget)
           (>= emacs-major-version 21)
           (>= emacs-minor-version 4)
-          (>= emacs-patch-level 10))
+       (or
+        (eq emacs-patch-level nil)
+        (>= emacs-patch-level 10)))
   (require 'efc-xemacs))
 
 ;; Redefine toolbar-debug and toolbar-compile so that clicking the

Reply via email to