Hi,

Well, the problem that I had (see the email attached below) was due to a bad configuration of Makefile variables.

So I adjust Makefile variables for my environment, compiled and installed JDEE with no problem, but I had to modify the jde-earlier-versionp (in jde.el file), because I'm using cedet version 1.0pre2 and jde-earlier-versionp didn't handle string version containing "pre", only containing "beta".

Below is a suggestion for jde-earlier-versionp handles "alpha", "beta" and "pre":

(defun jde-earlier-versionp (ver1 ver2)
 "Return non-nil if VER1 is earlier than VER2"
 ;; alpha < beta < pre
 (let* ((ver1-alphap (string-match "alpha" ver1))
    (ver1-betap  (string-match "beta"  ver1))
    (ver1-prep   (string-match "pre"   ver1))
    (ver2-alphap (string-match "alpha" ver2))
    (ver2-betap  (string-match "beta"  ver2))
    (ver2-prep   (string-match "pre"   ver2))
    (v1 (or ver1-alphap ver1-betap ver1-prep))
    (s1 (if v1 (substring ver1  0 v1) ver1))
    (v2 (or ver2-alphap ver2-betap ver2-prep))
    (s2 (if v2 (substring ver2  0 v2) ver2)))
   (cond
    ((or (and ver1-alphap ver2-alphap)
     (and ver1-betap  ver2-betap)
     (and ver1-prep   ver2-prep)
     (and (not (or ver1-alphap ver1-betap ver1-prep))
          (not (or ver2-alphap ver2-betap ver2-prep))))
     (string< ver1 ver2))
    ((or (and ver1-alphap (or ver2-betap ver2-prep))
     (and ver1-betap ver2-prep))
     (or (string= s1 s2) (string< s1 s2)))
    ((or (and ver2-alphap (or ver1-betap ver1-prep))
     (and ver2-betap  ver1-prep))
     (string< s1 s2))
    (v1
     (or (string= s1 ver2) (string< s1 ver2)))
    (t                    ; v2
     (string< ver1 s2)))))


Regards,


Vinicius

PS: The code above was not exhaustively tested.



Vinicius Jose Latorre wrote:

Hi,


I'm using GNU Emacs 22.0.50.1 running in Linux and just installed JDEE v2.3.5.

Well, when I try to create a new class (File > JDE New > Class...), giving name jjj.java to file and jjj to package name, I only got a buffer containing:


=======================================================BEGIN BUFFER jjj.java
package jjj;

/**
* Describe class jjj here.
*
*
* Created: Tue May  3 23:24:08 2005
*
* @author <a href="mailto:[EMAIL PROTECTED]">Vinicius Jose
* Latorre</a>
* @version 1.0
=======================================================END BUFFER jjj.java

And in *Messages* buffer there are the following error messages:

  Error in menu-bar-update-hook: (error Point after end of properties)
  Point after end of properties [2 times]

What am I missing?  Could someone help me?



Thanks in advance,


Vinicius


Reply via email to