GNU emacs from cvs, next-error, jde-compile-finish-kill-buffer
Hi, in CVS Emacs `next-error' requires an argument so `jde-compile-finish-kill-buffer' errors. Changing ;;there were errors, so jump to the first error (if jde-compile-jump-to-first-error (next-error) to ;;there were errors, so jump to the first error (if jde-compile-jump-to-first-error (next-error 1))))) in `jde-compile-finish-kill-buffer' fixes the problem. jde-version "2.3.4beta4" emacs-version "21.3.50.3" -- David
jde-compile-enable-kill-buffer no effect?
Hi, I have a problem with customizing jde-compile-enable-kill-buffer. For me, the setting of this variable seems to have no effect. What ever the setting is, compiling with ant-server or javac for example always close the compile window if no error happened -- interestingly, there's another misbehavior when using compile-server: here the buffer is never closed, as it doesn't seem to recognized that no error happened (but I suspect this to be a different problem)... I'm using current CVS jde and xemacs. jtl signature.asc Description: This is a digitally signed message part
Re: jde-compile
"Jeff Rancier" <[EMAIL PROTECTED]> writes: > Hello All. > > Is there any customization to have jde-compile to automatically save the > source file if not saved? Yes, set compilation-ask-about-save to nil. Javier > > Thanks, > Jeff > > - > Jeffery B. Rancier > Softechnics, a METTLER TOLEDO company > 7063 Interstate Island Rd. > Syracuse, NY 13209 > http://www.softechnics.com > http://www.mt.com > - > "Live as if you were to die tomorrow. > Learn as if you were to live forever." > > - M.K. Gandhi > > -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 263-5406 40 Williams St., Suite G20, http://www.forumsys.com Wellesley, MA 02481
jde-compile
Hello All. Is there any customization to have jde-compile to automatically save the source file if not saved? Thanks, Jeff - Jeffery B. Rancier Softechnics, a METTLER TOLEDO company 7063 Interstate Island Rd. Syracuse, NY 13209 http://www.softechnics.com http://www.mt.com - "Live as if you were to die tomorrow. Learn as if you were to live forever." - M.K. Gandhi
Is there jde-make-finish-hook analogous to jde-compile-finish-hook
Sandip Chitale writes: > If not, what is the best way to implement it ? I'm not sure. I'll look into it. - Paul
Is there jde-make-finish-hook analogous to jde-compile-finish-hook
If not, what is the best way to implement it ?
Re: problems with jde-compile-jde on jde-2.2.8
Mike Woolley writes: > Paul Kinnucan <[EMAIL PROTECTED]> writes: > > > Jeff Greif writes: > > > > > The problem appears to be the attempt to support both GNU Emacs and > > Xemacs using runtime conditionals. It appears that compile-time > > conditionals are needed in order to compile the code in > > tree-widget.el, or some additional runtime conditionals are needed, > > such as > > > > > > > > if (not (featurep 'xemacs)) > > > (progn > > > (defvar widget-button-keymap nil) > > > (defun extent-list () nil))) > > > > > > You can also work around the problem in ways which break Xemacs > > support. > > > > Hi Jeff, > > > > Yes, most of the JDE Lisp files include XEmacs comptability code that > > leads to free variable warnings when the files are compiled under > > Emacs or under XEmacs. I don't know of any compile-time method of > > avoiding free variable warnings in the compiler output. Do you? > > > > > > - Paul > > Yes it's possible. > > The conditional forms suggested by Jeff need to be surrounded by > (eval-when-compile...), so the byte compiler sees the dummy > definitions. > > I usually do something like the following: > > (eval-and-compile > (defconst my-xemacs-flag (featurep 'xemacs))) > > (eval-when-compile > (cond (my-xemacs-flag > (defvar gnu-emacs-variable nil) > (fset 'gnu-emacs-function nil)) > (t ; GNU Emacs > (defvar xemacs-variable nil) > (fset 'xemacs-function nil > eval-when-compile affects only compiled files. A lot of JDE users, including myself, run source files uncompiled for various reasons. As a result, if I do what you suggest, the emacs environment will be polluted with a lot of XEmacs variables, etc. Jeff then suggested that I add an additional test of a byte-compile flag. I'll give this a try when I get a chance. - Paul
Re: problems with jde-compile-jde on jde-2.2.8
Paul Kinnucan <[EMAIL PROTECTED]> writes: > Jeff Greif writes: > > > The problem appears to be the attempt to support both GNU Emacs and > Xemacs using runtime conditionals. It appears that compile-time > conditionals are needed in order to compile the code in > tree-widget.el, or some additional runtime conditionals are needed, > such as > > > > > if (not (featurep 'xemacs)) > > (progn > > (defvar widget-button-keymap nil) > > (defun extent-list () nil))) > > > > You can also work around the problem in ways which break Xemacs > support. > > Hi Jeff, > > Yes, most of the JDE Lisp files include XEmacs comptability code that > leads to free variable warnings when the files are compiled under > Emacs or under XEmacs. I don't know of any compile-time method of > avoiding free variable warnings in the compiler output. Do you? > > > - Paul Yes it's possible. The conditional forms suggested by Jeff need to be surrounded by (eval-when-compile...), so the byte compiler sees the dummy definitions. I usually do something like the following: (eval-and-compile (defconst my-xemacs-flag (featurep 'xemacs))) (eval-when-compile (cond (my-xemacs-flag (defvar gnu-emacs-variable nil) (fset 'gnu-emacs-function nil)) (t ; GNU Emacs (defvar xemacs-variable nil) (fset 'xemacs-function nil Cheers, Mike
problems with jde-compile-jde on jde-2.2.8
This error was produced when invoking jde-compile-jde from GNU emacs 20.7 invoked with no site file and with the minimal jde .emacs (see below) Compiling file c:/apps/emacs-20.7/site-lisp/jde-2.2.8/lisp/tree-widget.el at Wed Oct 10 15:13:25 2001While compiling toplevel forms: ** reference to free variable widget-button-keymap ** the function extent-list is not known to be defined. The problem appears to be the attempt to support both GNU Emacs and Xemacs using runtime conditionals. It appears that compile-time conditionals are needed in order to compile the code in tree-widget.el, or some additional runtime conditionals are needed, such as if (not (featurep 'xemacs)) (progn (defvar widget-button-keymap nil) (defun extent-list () nil))) You can also work around the problem in ways which break Xemacs support. If any reply is sent, I'd appreciate being cc'ed directly, since I'm not currently subscribed to the list. Thanks much. Jeff ;; minimal .emacs ;; ;;; Stuff for JDE (let ((site-lisp "c:/apps/emacs-20.7/site-lisp")) (add-to-list 'load-path (expand-file-name (concat site-lisp "/jde-2.2.8/lisp"))) (add-to-list 'load-path (expand-file-name (concat site-lisp "/semantic-1.4beta11"))) (add-to-list 'load-path (expand-file-name (concat site-lisp "/speedbar-0.14beta1"))) (add-to-list 'load-path (expand-file-name (concat site-lisp "/elib-1.0"))) (add-to-list 'load-path (expand-file-name (concat site-lisp "/eieio-0.16" ;; Set the debug option to enable a backtrace when a;; problem occurs.(setq debug-on-error t) ;; If you want Emacs to defer loading the JDE until you open a ;; Java file, edit the following line(setq defer-loading-jde nil);; to read: (setq defer-loading-jde t);; (if defer-loading-jde (progn (autoload 'jde-mode "jde" "JDE mode." t) (setq auto-mode-alist (append '(("\\.java\\'" . jde-mode)) auto-mode-alist))) (require 'jde)) ;; Sets the basic indentation for Java source files;; to two spaces. Handled below.; (defun my-jde-mode-hook (); (setq c-basic-offset 2)) ; (add-hook 'jde-mode-hook 'my-jde-mode-hook) (c-add-style "my-java" (list "java" '(c-basic-offset . 2) '(c-offsets-alist . ((substatement-open . 0))) ))(c-add-style "my-c++" (list "stroustrup" '(c-basic-offset . 2) '(c-offsets-alist . ((substatement-open . 0))) )) (add-hook 'c++-mode-hook (lambda () (c-set-style "my-c++")))(add-hook 'java-mode-hook (lambda () (c-set-style "my-java")))(add-hook 'jde-mode-hook (lambda () (c-set-style "my-java"))) (custom-set-variables '(c-basic-offset 2))(custom-set-faces) (setq c-default-style "user"); end of JDE and style stuff ;
Problems using jde-compile 2.2.9beta3 with xemacs 21.4.3
Perkens-Golomb, Burkhard writes: > I'm using Xemacs 21.4.3 on Win NT and JDE 2.2.9beta3. I try to > compile a java source (jde-compile) and xemacs don't know the variables > (Symbol's value as variable is void): > > compilation-error-regexp-alist > compilation-enter-directory-regexp-alist > compilation-leave-directory-regexp-alist > compilation-file-regexp-alist > compilation-nomessage-regexp-alist > > I've commented out the lines with these variables. > Then xemacs doesn't know (Symbol's value as variable is void): > This appears to be an XEmacs compatibility issue. I'll provide a fix ASAP. > compilation-process-setup-function > > What's wrong? > > Burkhard > > P.S.: BTW, would it be possible to use the CompilationServer with > ant? Not without hacking the ant code. - Paul
Problems using jde-compile 2.2.9beta3 with xemacs 21.4.3
I'm using Xemacs 21.4.3 on Win NT and JDE 2.2.9beta3. I try to compile a java source (jde-compile) and xemacs don't know the variables (Symbol's value as variable is void): compilation-error-regexp-alist compilation-enter-directory-regexp-alist compilation-leave-directory-regexp-alist compilation-file-regexp-alist compilation-nomessage-regexp-alist I've commented out the lines with these variables. Then xemacs doesn't know (Symbol's value as variable is void): compilation-process-setup-function What's wrong? Burkhard P.S.: BTW, would it be possible to use the CompilationServer with ant?
Problems using jde-compile 2.2.9beta3 with xemacs 21.4.3
[Perhaps a repost: Don't know wether my first post reached the list] I'm using Xemacs 21.4.3 on Win NT and JDE 2.2.9beta3. I try to compile a java source (jde-compile) and xemacs doesn't know the variables ("Symbol's value as variable is void"): compilation-error-regexp-alist compilation-enter-directory-regexp-alist compilation-leave-directory-regexp-alist compilation-file-regexp-alist compilation-nomessage-regexp-alist I've commented out the lines with these variables. Then xemacs doesn't know ("Symbol's value as variable is void"): compilation-process-setup-function What's wrong? Burkhard P.S.: BTW, would it be possible to use the CompilationServer with ant?
Re: Quote Jde Compile Option Directory variable?
Olle Sundblad wrote: > Hi > > Maybe this should go to the delvelopers list? > > I just noticed that when I set "Jde Compile Option Directory" to: > > c:/Program Files/Apache Tomcat 4.0/webapps/cid/WEB-INF/classes > or > "c:/Program Files/Apache Tomcat 4.0/webapps/cid/WEB-INF/classes" > > I get the following error (because of the spaces allowed in/required by > Windows): > > output: > cd c:/Program Files/Apache Tomcat 4.0/webapps/cid/WEB-INF/src/ > javac -classpath "c:/Program Files/Apache Tomcat > 4.0/common/lib/servlet.jar;c:/Program Files/Apache Tomcat > 4.0/common/lib/tools.jar" -d c:/Program Files/Apache Tomcat > 4.0/webapps/cid/WEB-INF/classes -g -target 1.2 TestApp.java > javac: invalid argument: Files/Apache > Usage: javac > > I can get it to compile when by setting "Jde Compile Option Directory" to: > > \"c:/Program Files/Apache Tomcat 4.0/webapps/cid/WEB-INF/classes\" > > output: > cd c:/Program Files/Apache Tomcat 4.0/webapps/cid/WEB-INF/src/ > javac -classpath "c:/Program Files/Apache Tomcat > 4.0/common/lib/servlet.jar;c:/Program Files/Apache Tomcat > 4.0/common/lib/tools.jar" -d /"c:/Program Files/Apache Tomcat > 4.0/webapps/cid/WEB-INF/classes/" -g -target 1.2 TestApp.java > > Compilation finished at Tue Oct 02 17:13:00 > > But it doesn't look very nice (with the slash before the quote etc.), so my > question is shouldn't the "Jde Compile Option Directory" be quoted by jdee > instead? I solved that this way (see below) but maybe there is a better way? > > in jde-compile.el I changed > > (if (not (string= jde-compile-option-directory "")) > (setq options > (concat options > " -d " > (jde-normalize-path 'jde-compile-option-directory > > to > > (if (not (string= jde-compile-option-directory "")) > (setq options > (concat options > " -d \"" > (jde-normalize-path 'jde-compile-option-directory) "\""))) > > I have only tested this in Windows but I can't see why it wouldn't work > under unix/linux as well. > > /Olle It would probably be preferable to toggle jde-quote-classpath variable in the project file. M-x customize-variable jde-quote-classpath Mark
Quote Jde Compile Option Directory variable?
Hi Maybe this should go to the delvelopers list? I just noticed that when I set "Jde Compile Option Directory" to: c:/Program Files/Apache Tomcat 4.0/webapps/cid/WEB-INF/classes or "c:/Program Files/Apache Tomcat 4.0/webapps/cid/WEB-INF/classes" I get the following error (because of the spaces allowed in/required by Windows): output: cd c:/Program Files/Apache Tomcat 4.0/webapps/cid/WEB-INF/src/ javac -classpath "c:/Program Files/Apache Tomcat 4.0/common/lib/servlet.jar;c:/Program Files/Apache Tomcat 4.0/common/lib/tools.jar" -d c:/Program Files/Apache Tomcat 4.0/webapps/cid/WEB-INF/classes -g -target 1.2 TestApp.java javac: invalid argument: Files/Apache Usage: javac I can get it to compile when by setting "Jde Compile Option Directory" to: \"c:/Program Files/Apache Tomcat 4.0/webapps/cid/WEB-INF/classes\" output: cd c:/Program Files/Apache Tomcat 4.0/webapps/cid/WEB-INF/src/ javac -classpath "c:/Program Files/Apache Tomcat 4.0/common/lib/servlet.jar;c:/Program Files/Apache Tomcat 4.0/common/lib/tools.jar" -d /"c:/Program Files/Apache Tomcat 4.0/webapps/cid/WEB-INF/classes/" -g -target 1.2 TestApp.java Compilation finished at Tue Oct 02 17:13:00 But it doesn't look very nice (with the slash before the quote etc.), so my question is shouldn't the "Jde Compile Option Directory" be quoted by jdee instead? I solved that this way (see below) but maybe there is a better way? in jde-compile.el I changed (if (not (string= jde-compile-option-directory "")) (setq options (concat options " -d " (jde-normalize-path 'jde-compile-option-directory to (if (not (string= jde-compile-option-directory "")) (setq options (concat options " -d \"" (jde-normalize-path 'jde-compile-option-directory) "\""))) I have only tested this in Windows but I can't see why it wouldn't work under unix/linux as well. /Olle
Re: jde-compiler, jde-compile-server variables....
Jim Snyder writes: > Paul > > It turns out in my .emacs under the custom-set-variables I have > > '(jde-compile-option-command-line-args "") I changed the data type of this variable to a list of strings. - Paul > '(jde-db-source-directories (quote ("${BIZNAV_HOME}" "${JDKHOME}/jre/lib/rt.jar" >"/cots/jsdk/jsdk2.1/servlet.jar" "/cots/jsdk/jsdk2.1/server.jar" >"/home/jsnyder/.scratch"))) > '(jde-compile-option-vm-args (quote ("-mx2000"))) > > > which caused problem. Once these were removed the compile server stuff worked fine. > > > > Jim > > - Original Message - > From: Jim Snyder > To: Paul Kinnucan > Sent: Monday, October 01, 2001 9:16 AM > Subject: jde-compiler, jde-compile-server variables > > > Dear Paul > > These variables sound really cool. I have always compiled by invoking via the F1 >key the jde-compile. However I can't get my compile to execute any more. After >pressing the F1 key, the *Messages* buffer states: > > Wrong type argument: listp, "" > > Attached are my .emacs and *Messages* buffer as a file. > > Keep up the GREAT work to JDEE. Thanks so much for making a kick butt tool. > > Jim > > > > JDE_ELIB_VERSION=1.0 > JDE_EIEIO_VERSION=0.17beta3 > JDE_ECB_VERSION=1.31 > JDE_VERSION=2.2.9beta2 > JDE_SPEEDBAR_VERSION=0.13a > JDE_SEMANTIC_VERSION=1.4beta11 > > > > > > > > > > > Paul > > It turns out in my .emacs under the > custom-set-variables I have > > '(jde-compile-option-command-line-args > "") '(jde-db-source-directories (quote ("${BIZNAV_HOME}" > "${JDKHOME}/jre/lib/rt.jar" "/cots/jsdk/jsdk2.1/servlet.jar" > "/cots/jsdk/jsdk2.1/server.jar" > "/home/jsnyder/.scratch"))) '(jde-compile-option-vm-args (quote > ("-mx2000"))) > > which caused problem. Once these were removed the > compile server stuff worked fine. > > > > Jim > > style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #00 >2px solid; MARGIN-RIGHT: 0px"> > - Original Message - > style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black">From: > mailto:[EMAIL PROTECTED]";>Jim > Snyder > To:href="mailto:[EMAIL PROTECTED]";>Paul Kinnucan > Sent: Monday, October 01, 2001 9:16 > AM > Subject: jde-compiler, jde-compile-server > variables > > Dear Paul > > These variables sound really cool. I have > always compiled by invoking via the F1 key the jde-compile. However I > can't get my compile to execute any more. After pressing the F1 key, the > *Messages* buffer states: > > Wrong type argument: listp, "" > > Attached are my .emacs and *Messages* buffer as a > file. > > Keep up the GREAT work to JDEE. Thanks so much > for making a kick butt tool. > > Jim > > > > >size=2>JDE_ELIB_VERSION=1.0JDE_EIEIO_VERSION=0.17beta3JDE_ECB_VERSION=1.31JDE_VERSION=2.2.9beta2JDE_SPEEDBAR_VERSION=0.13aJDE_SEMANTIC_VERSION=1.4beta11 > >
jde-compile-jde buggy
IMHO jde-comopile-jde is buggy. Here is a working version; i have all commented out what is buggy or not necessary: (defun jde-compile-jde () "Byte-compile all uncompiled files of jde." ;; Be sure to have . in load-path since a number of files in jde ;; depend on other files and we always want the newer one even if ;; a previous version of jde exists. (interactive) (let ((load-path (append '(".") load-path)) ;; (buffer-directory (file-name-directory (buffer-file-name))) ;; never used (jde-lisp-directory (expand-file-name "lisp" (jde-find-jde-data-directory (save-excursion ;; (dired jde-lisp-directory) (mapcar (function jde-compile-file-if-necessary) ;;(mapcar ;; (lambda (file) ;;(expand-file-name file jde-lisp-directory)) (directory-files jde-lisp-directory t) Not the additional parameter in (directory-files ...). This makes the second mapcar superfluous. Klaus -- Klaus Berndlmailto: [EMAIL PROTECTED] sd&m AG http://www.sdm.de software design & management Thomas-Dehler-Str. 27, 81737 München, Germany Tel +49 89 63812-392, Fax -220
RE: jde-compile-jde?
Thanks, Troy. Cheers, David -Original Message- From: Troy Noble [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 9:50 AM To: 'Ventimiglia, David'; Troy Noble Cc: '[EMAIL PROTECTED]' Subject: RE: jde-compile-jde? I don't know of any official JDE mirrors. There is what I think might be an unofficial FTP mirror at the location below, which may or may not be up-to-date. I seem to recall this FTP site went away a few months ago, since this is where I used to download things from instead of from the web page (I like to use batch mode wget -m). It appears to be back online now for whatever reason, since I was able to find it via Lycos's advanced FTP search looking for "jde-latest.zip" and was able to download the file from the resulting link. The checksum matched the jde-latest.zip from the website... which is reassuring. Don't know if we can count on this site being there long-term though. Paul or others on the list may have more information. ftp://ftp.sunsite.auc.dk/projects/jde/ ftp://ftp.sunsite.auc.dk/projects/jde/jde-latest.zip Troy -Original Message- From: Ventimiglia, David [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 10:35 AM To: 'Troy Noble' Subject: RE: jde-compile-jde? Thanks, Troy. That explains it. I picked up jde-latest from a "mirror" site because http://jde.sunsite.dk/ is unreachable for me right now, but it's an older version of jde (2.2.5.2). Do you know, if I can't get it from the above url (either because the site is down, or because of problems on my end) is there an up-to-date mirror I can get it from? Thanks! Cheers, David -Original Message- From: Troy Noble [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 9:30 AM To: 'Ventimiglia, David'; Jde List (E-mail) Subject: RE: jde-compile-jde? Just to be clear, you are using 2.2.6.2, right? Make sure you aren't loading an old jde.elc & friends from somewhere, since jde-compile-jde was added fairly recently. First remove all .elc files from your JDE install dirs so you are sure you are "starting fresh". from jde.el: ;; Revision 1.139 2000/12/10 06:52:58 paulk ;; Added jde-compile-jde. I just downloaded and upgraded to 2.2.6.2 (since I hadn't updated since 2.2.6 was first released). In both the jde-latest.tar.gz and jde-latest.zip I see jde-compile-jde in the jde.el file at line 1439. I was able to run jde-compile-jde just fine. A sure test is: M-x load-library jde M-x apropos jde-compile-jde If jde-compile-jde is not defined, then something is probably goofy with your jde.el or you have an old jde.elc being loaded from somewhere. You might also check your *Messages* buffer to ensure nothing went awry when jde.el was loading. Just some ideas. Sorry I misunderstood your original message. Thanks, Troy -Original Message- From: Ventimiglia, David [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 10:13 AM To: Jde List (E-mail) Subject: RE: jde-compile-jde? Thanks, Troy, but I actually have it installed, meaning it's on my load path and I have (require 'jde) in my default.el file. It actually loads and runs fine. I can edit Java files with it with no problem. However, the jde-compile-jde function is absent from jde.el, nor is it present in any of the other files in ../jde/lisp. Cheers, David -Original Message- From: Troy Noble [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 9:05 AM To: 'Ventimiglia, David'; Jde List (E-mail) Subject: RE: jde-compile-jde? You need to first install jde and get it to load at least once, then you will be able to run jde-compile-jde... as this is provided in "jde.el". ---------- jde-compile-jde is an interactive compiled Lisp function in `jde'. (jde-compile-jde) Byte-compile all uncompiled files of jde. -- Troy -Original Message- From: Ventimiglia, David [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 9:59 AM To: Jde List (E-mail) Subject: jde-compile-jde? Hi, I just downloaded the jde-latest.zip and installed it. I don't have the jde-compile-jde command, however. Did this go away, or did I do something wrong? Thanks! David
RE: jde-compile-jde?
I don't know of any official JDE mirrors. There is what I think might be an unofficial FTP mirror at the location below, which may or may not be up-to-date. I seem to recall this FTP site went away a few months ago, since this is where I used to download things from instead of from the web page (I like to use batch mode wget -m). It appears to be back online now for whatever reason, since I was able to find it via Lycos's advanced FTP search looking for "jde-latest.zip" and was able to download the file from the resulting link. The checksum matched the jde-latest.zip from the website... which is reassuring. Don't know if we can count on this site being there long-term though. Paul or others on the list may have more information. ftp://ftp.sunsite.auc.dk/projects/jde/ ftp://ftp.sunsite.auc.dk/projects/jde/jde-latest.zip Troy -Original Message- From: Ventimiglia, David [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 10:35 AM To: 'Troy Noble' Subject: RE: jde-compile-jde? Thanks, Troy. That explains it. I picked up jde-latest from a "mirror" site because http://jde.sunsite.dk/ is unreachable for me right now, but it's an older version of jde (2.2.5.2). Do you know, if I can't get it from the above url (either because the site is down, or because of problems on my end) is there an up-to-date mirror I can get it from? Thanks! Cheers, David -Original Message- From: Troy Noble [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 9:30 AM To: 'Ventimiglia, David'; Jde List (E-mail) Subject: RE: jde-compile-jde? Just to be clear, you are using 2.2.6.2, right? Make sure you aren't loading an old jde.elc & friends from somewhere, since jde-compile-jde was added fairly recently. First remove all .elc files from your JDE install dirs so you are sure you are "starting fresh". from jde.el: ;; Revision 1.139 2000/12/10 06:52:58 paulk ;; Added jde-compile-jde. I just downloaded and upgraded to 2.2.6.2 (since I hadn't updated since 2.2.6 was first released). In both the jde-latest.tar.gz and jde-latest.zip I see jde-compile-jde in the jde.el file at line 1439. I was able to run jde-compile-jde just fine. A sure test is: M-x load-library jde M-x apropos jde-compile-jde If jde-compile-jde is not defined, then something is probably goofy with your jde.el or you have an old jde.elc being loaded from somewhere. You might also check your *Messages* buffer to ensure nothing went awry when jde.el was loading. Just some ideas. Sorry I misunderstood your original message. Thanks, Troy -Original Message- From: Ventimiglia, David [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 10:13 AM To: Jde List (E-mail) Subject: RE: jde-compile-jde? Thanks, Troy, but I actually have it installed, meaning it's on my load path and I have (require 'jde) in my default.el file. It actually loads and runs fine. I can edit Java files with it with no problem. However, the jde-compile-jde function is absent from jde.el, nor is it present in any of the other files in ../jde/lisp. Cheers, David -Original Message- From: Troy Noble [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 9:05 AM To: 'Ventimiglia, David'; Jde List (E-mail) Subject: RE: jde-compile-jde? You need to first install jde and get it to load at least once, then you will be able to run jde-compile-jde... as this is provided in "jde.el". ---------- jde-compile-jde is an interactive compiled Lisp function in `jde'. (jde-compile-jde) Byte-compile all uncompiled files of jde. -- Troy -Original Message- From: Ventimiglia, David [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 9:59 AM To: Jde List (E-mail) Subject: jde-compile-jde? Hi, I just downloaded the jde-latest.zip and installed it. I don't have the jde-compile-jde command, however. Did this go away, or did I do something wrong? Thanks! David
RE: jde-compile-jde?
At 09:12 AM 2/5/01 -0800, Ventimiglia, David wrote: >Thanks, Troy, but I actually have it installed, meaning it's on my load path >and I have (require 'jde) in my default.el file. It actually loads and runs >fine. I can edit Java files with it with no problem. However, the >jde-compile-jde function is absent from jde.el, nor is it present in any of >the other files in ../jde/lisp. Funny. I just downloaded jde-latest.zip and it contained jde-compile-jde. - Paul
RE: jde-compile-jde?
Just to be clear, you are using 2.2.6.2, right? Make sure you aren't loading an old jde.elc & friends from somewhere, since jde-compile-jde was added fairly recently. First remove all .elc files from your JDE install dirs so you are sure you are "starting fresh". from jde.el: ;; Revision 1.139 2000/12/10 06:52:58 paulk ;; Added jde-compile-jde. I just downloaded and upgraded to 2.2.6.2 (since I hadn't updated since 2.2.6 was first released). In both the jde-latest.tar.gz and jde-latest.zip I see jde-compile-jde in the jde.el file at line 1439. I was able to run jde-compile-jde just fine. A sure test is: M-x load-library jde M-x apropos jde-compile-jde If jde-compile-jde is not defined, then something is probably goofy with your jde.el or you have an old jde.elc being loaded from somewhere. You might also check your *Messages* buffer to ensure nothing went awry when jde.el was loading. Just some ideas. Sorry I misunderstood your original message. Thanks, Troy -Original Message- From: Ventimiglia, David [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 10:13 AM To: Jde List (E-mail) Subject: RE: jde-compile-jde? Thanks, Troy, but I actually have it installed, meaning it's on my load path and I have (require 'jde) in my default.el file. It actually loads and runs fine. I can edit Java files with it with no problem. However, the jde-compile-jde function is absent from jde.el, nor is it present in any of the other files in ../jde/lisp. Cheers, David -Original Message- From: Troy Noble [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 9:05 AM To: 'Ventimiglia, David'; Jde List (E-mail) Subject: RE: jde-compile-jde? You need to first install jde and get it to load at least once, then you will be able to run jde-compile-jde... as this is provided in "jde.el". ---------- jde-compile-jde is an interactive compiled Lisp function in `jde'. (jde-compile-jde) Byte-compile all uncompiled files of jde. -- Troy -Original Message- From: Ventimiglia, David [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 9:59 AM To: Jde List (E-mail) Subject: jde-compile-jde? Hi, I just downloaded the jde-latest.zip and installed it. I don't have the jde-compile-jde command, however. Did this go away, or did I do something wrong? Thanks! David
RE: jde-compile-jde?
Thanks, Troy, but I actually have it installed, meaning it's on my load path and I have (require 'jde) in my default.el file. It actually loads and runs fine. I can edit Java files with it with no problem. However, the jde-compile-jde function is absent from jde.el, nor is it present in any of the other files in ../jde/lisp. Cheers, David -Original Message- From: Troy Noble [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 9:05 AM To: 'Ventimiglia, David'; Jde List (E-mail) Subject: RE: jde-compile-jde? You need to first install jde and get it to load at least once, then you will be able to run jde-compile-jde... as this is provided in "jde.el". ---------- jde-compile-jde is an interactive compiled Lisp function in `jde'. (jde-compile-jde) Byte-compile all uncompiled files of jde. -- Troy -Original Message- From: Ventimiglia, David [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 9:59 AM To: Jde List (E-mail) Subject: jde-compile-jde? Hi, I just downloaded the jde-latest.zip and installed it. I don't have the jde-compile-jde command, however. Did this go away, or did I do something wrong? Thanks! David
RE: jde-compile-jde?
You need to first install jde and get it to load at least once, then you will be able to run jde-compile-jde... as this is provided in "jde.el". ------ jde-compile-jde is an interactive compiled Lisp function in `jde'. (jde-compile-jde) Byte-compile all uncompiled files of jde. -- Troy -Original Message- From: Ventimiglia, David [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 9:59 AM To: Jde List (E-mail) Subject: jde-compile-jde? Hi, I just downloaded the jde-latest.zip and installed it. I don't have the jde-compile-jde command, however. Did this go away, or did I do something wrong? Thanks! David
jde-compile-jde?
Hi, I just downloaded the jde-latest.zip and installed it. I don't have the jde-compile-jde command, however. Did this go away, or did I do something wrong? Thanks! David
Patch: jde-2.2.6 jde-compile-jde-depends
I'm frequently downloading new versions of the JDE, (since my quota requires that I store it in /tmp :) using a shell script, and liked the addition of jde-compile-jde. One thing it lacks is compiling of the associated packages (eieio, elib, semantic, & speedbar). I've modified jde-compile-jde slightly, and added jde-compile-jde-depends to recompile both the jde and the packages it depends on. This is the first time I've posted any emacs-hacking of my own, so comments and criticisms are welcome :) Note that the function assumes that these packages (and jde/lisp) are on your load path already, with the version names reomoved. --- jde.el.orig Fri Dec 22 00:17:16 2000 +++ jde.el Thu Jan 11 00:02:47 2001 @@ -1420,41 +1420,45 @@ (interactive) (jde-describe-map 'jde-mode-map)) - -;; Contributed by John Ciolfi, [EMAIL PROTECTED] -(defun jde-compile-file-if-necessary (file) - "Compile the JDE file FILE if necessary. -This is done if FILE.el is newer than FILE.elc or if FILE.elc doesn't exist." - (if (string= (file-name-extension file) "el") - (let* ((root (file-name-sans-extension file)) -(elc-file (concat root ".elc"))) - (if (or (not (file-exists-p elc-file)) - (file-newer-than-file-p file elc-file)) - (progn - (message (format "Byte-compiling %s..." - (file-name-nondirectory file))) - (byte-compile-file file)) - ;;;###autoload (defun jde-compile-jde () "Byte-compile all uncompiled files of jde." ;; Be sure to have . in load-path since a number of files in jde ;; depend on other files and we always want the newer one even if - ;; a previous version of jde exists. + ;; a previous version of jde exists (for jde developers). + + (interactive) + (let ((load-path (append '(".") load-path))) +(byte-recompile-directory + (expand-file-name "lisp" (jde-find-jde-data-directory)) 0))) + +;;;###autoload +(defun jde-compile-jde-depends () + "Byte-compile all uncompiled files of the entire jde. +Usefull when a new version has just been installed and +can be called from the command line via: + + \"emacs -f jde-compile-jde-depends\" +assuming a directory structure similar to the following, +with package lisp directories in your path: + site +jde +speedbar +semantic +elib +eieio" (interactive) - (let ((load-path (append '(".") load-path)) - (buffer-directory (file-name-directory (buffer-file-name))) - (jde-lisp-directory (expand-file-name "lisp" (jde-find-jde-data-directory -(save-excursion - (dired jde-lisp-directory) - (mapcar - (function jde-compile-file-if-necessary) - (mapcar - (lambda (file) - (expand-file-name file jde-lisp-directory)) - (directory-files jde-lisp-directory)) +(mapcar + (lambda (directory) + (byte-recompile-directory +(expand-file-name directory (jde-find-jde-data-directory)) 0)) + (list "lisp" + "../speedbar" + "../semantic" + "../elib" + "../eieio"))) (provide 'jde) -- Chad McHenry <[EMAIL PROTECTED]>