RE: jde-save-project misses some jde variables
At 04:20 PM 4/5/2001 -0600, you wrote: > >NS> OK, here's one. Do you still have the old project file handy? If >NS> so, can you check the lines that contain the above variables and >NS> verify that they look like this: >NS> >NS> '( t) >NS> ^ >NS> | >NS> The presence of `t' here is what tells JDE to put the value into >NS> the customized-value property upon load. If it is missing, then >NS> that's your reason why the new project file doesn't contain those >NS> variables. > >Great advice, Nick. Thank you! Indeed this prj.el file has been >carried along for several jde revs and many of my customized variables >(all customized using the recommended emacs interface) were not marked. >This problem is now fixed. The mark is put in by the JDE's save project function. I believe there was a point when the JDE was not marking them. So this is probably not customize's fault. - Paul
RE: jde-save-project misses some jde variables
NS> OK, here's one. Do you still have the old project file handy? If NS> so, can you check the lines that contain the above variables and NS> verify that they look like this: NS> NS> '( t) NS> ^ NS> | NS> The presence of `t' here is what tells JDE to put the value into NS> the customized-value property upon load. If it is missing, then NS> that's your reason why the new project file doesn't contain those NS> variables. Great advice, Nick. Thank you! Indeed this prj.el file has been carried along for several jde revs and many of my customized variables (all customized using the recommended emacs interface) were not marked. This problem is now fixed. Thanks again! -- Robert
RE: jde-save-project misses some jde variables
> From: Robert Mecklenburg [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 05, 2001 12:51 PM > > > RM> jde-compile-option-sourcepath > RM> jde-compile-option-directory > RM> jde-gen-cflow-if > RM> jde-gen-cflow-else > RM> jde-gen-cflow-elseif > RM> jde-gen-cflow-while > RM> jde-gen-cflow-for > RM> [ are not being saved ] > > It seems possible that reading a prj.el from 2.2.6 doesn't generate > the correct properties. Do I need to abandon my last prj.el file and > build a new one. I have a lot of customizations which would be > painful to merge by hand. Any suggestions? OK, here's one. Do you still have the old project file handy? If so, can you check the lines that contain the above variables and verify that they look like this: '( t) ^ | The presence of `t' here is what tells JDE to put the value into the customized-value property upon load. If it is missing, then that's your reason why the new project file doesn't contain those variables. /Nick
RE: jde-save-project misses some jde variables
At 11:50 AM 4/5/01 -0600, Robert Mecklenburg wrote: >RM> jde-compile-option-sourcepath >RM> jde-compile-option-directory >RM> jde-gen-cflow-if >RM> jde-gen-cflow-else >RM> jde-gen-cflow-elseif >RM> jde-gen-cflow-while >RM> jde-gen-cflow-for >RM> [ are not being saved ] > >RM> Notice that jde-gen-cflow-* aren't being saved for me and those >RM> are not in my .emacs customization. > >NS> Let me understand - are you customizing jde-compile-option-* and >NS> jde-gen-cflow-* at the project level? > >Okay, here is some more information. I have been saving my jde >customizations in the file prj.el (using jde-save-project) at the top >level of my project. When I upgraded from 2.2.6 I did not alter or >delete my existing prj.el file. I just let jde read the file and >decide for itself which variables have been customize and which have >not. > >After a little more investigation, here's what I've learned. From my >*scratch* buffer: > >;;; this is modified from the defaults >jde-gen-cflow-if >("(if (jde-parse-comment-or-quoted-p)" "'(l \"if\")" "'(l '> \"if (\" (p >\"if-clause: \" clause) \" )\"" "(if jde-gen-k&r " "()" "'>'n)" >"\"{\"'>'n'>'r'n" "\"}\"'>'n'>)" ")") > >;;; the custom-type matches the defcustom sexp >(get 'jde-gen-cflow-if 'custom-type) >(repeat string) > >;;; Oops, shouldn't this be non-ni? >(get 'jde-gen-cflow-if 'customized-value) >nil It should be, IF you used customize to set the value and the customization was valid. However, if you used a setq statement somewhere, say in your .emacs file, to set this variable, the 'customized-value property would not be set. Certainly get 'jde-gen-cflow-if 'customized-value) returns the customized value on my system. - Paul > > >It seems possible that reading a prj.el from 2.2.6 doesn't generate >the correct properties. Do I need to abandon my last prj.el file and >build a new one. I have a lot of customizations which would be >painful to merge by hand. Any suggestions? > > >NS> Maybe you should submit a problem report at this point. > >Actually, my first message was a problem report. I hesitate to repost >it since Paul obviously got it. > >Thanks again! >-- >Robert
RE: jde-save-project misses some jde variables
RM> jde-compile-option-sourcepath RM> jde-compile-option-directory RM> jde-gen-cflow-if RM> jde-gen-cflow-else RM> jde-gen-cflow-elseif RM> jde-gen-cflow-while RM> jde-gen-cflow-for RM> [ are not being saved ] RM> Notice that jde-gen-cflow-* aren't being saved for me and those RM> are not in my .emacs customization. NS> Let me understand - are you customizing jde-compile-option-* and NS> jde-gen-cflow-* at the project level? Okay, here is some more information. I have been saving my jde customizations in the file prj.el (using jde-save-project) at the top level of my project. When I upgraded from 2.2.6 I did not alter or delete my existing prj.el file. I just let jde read the file and decide for itself which variables have been customize and which have not. After a little more investigation, here's what I've learned. From my *scratch* buffer: ;;; this is modified from the defaults jde-gen-cflow-if ("(if (jde-parse-comment-or-quoted-p)" "'(l \"if\")" "'(l '> \"if (\" (p \"if-clause: \" clause) \" )\"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"}\"'>'n'>)" ")") ;;; the custom-type matches the defcustom sexp (get 'jde-gen-cflow-if 'custom-type) (repeat string) ;;; Oops, shouldn't this be non-ni? (get 'jde-gen-cflow-if 'customized-value) nil It seems possible that reading a prj.el from 2.2.6 doesn't generate the correct properties. Do I need to abandon my last prj.el file and build a new one. I have a lot of customizations which would be painful to merge by hand. Any suggestions? NS> Maybe you should submit a problem report at this point. Actually, my first message was a problem report. I hesitate to repost it since Paul obviously got it. Thanks again! -- Robert
RE: jde-save-project misses some jde variables
> From: Robert Mecklenburg [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 05, 2001 12:11 PM > > > RM> jde-compile-option-sourcepath > RM> jde-compile-option-directory > RM> jde-gen-cflow-if > RM> jde-gen-cflow-else > RM> jde-gen-cflow-elseif > RM> jde-gen-cflow-while > RM> jde-gen-cflow-for > RM> [ are not being saved ] > > Wow, thanks for the speedy reply. > > Yes, I saw that fix but my problem seems to occur with variables that > do not appear in my .emacs customization. I worked around the most > severe problems by placing jde-compile-option-directory and > jde-compile-option-sourcepath in my .emacs only _after_ I discovered > they weren't being saved. Notice that jde-gen-cflow-* aren't being > saved for me and those are not in my .emacs customization. Let me understand - are you customizing jde-compile-option-* and jde-gen-cflow-* at the project level? If not, then this is the intended behavior that was implemented recently - beta6 I think - where non-customized values are excluded from the project file. If you are customizing them, and they're still not being saved, then maybe we have another bug. Maybe you should submit a problem report at this point. /Nick
Re: jde-save-project misses some jde variables
At 11:11 AM 4/5/01 -0600, Robert Mecklenburg wrote: >RM> jde-compile-option-sourcepath >RM> jde-compile-option-directory I just saved both of the above in a project file without any problems. I didn't bother with the others because I have no reason to assume they wouldn't work as well. I am using Emacs 20.7.1, JDE-2.2.7beta6+ on Windows NT. - Paul
Re: jde-save-project misses some jde variables
RM> jde-compile-option-sourcepath RM> jde-compile-option-directory RM> jde-gen-cflow-if RM> jde-gen-cflow-else RM> jde-gen-cflow-elseif RM> jde-gen-cflow-while RM> jde-gen-cflow-for RM> [ are not being saved ] PK> There is a bug (and a fix) for the case where the JDE fails to PK> save a customization in a project file that overrides a PK> customizaiton in the .emacs file. See the mailing list archive for PK> details. Wow, thanks for the speedy reply. Yes, I saw that fix but my problem seems to occur with variables that do not appear in my .emacs customization. I worked around the most severe problems by placing jde-compile-option-directory and jde-compile-option-sourcepath in my .emacs only _after_ I discovered they weren't being saved. Notice that jde-gen-cflow-* aren't being saved for me and those are not in my .emacs customization. Thanks again, -- Robert
Re: jde-save-project misses some jde variables
Hi, There is a bug (and a fix) for the case where the JDE fails to save a customization in a project file that overrides a customizaiton in the .emacs file. See the mailing list archive for details. - Paul At 10:48 AM 4/5/01 -0600, Robert Mecklenburg <[EMAIL PROTECTED]> wrote: >I love jde and appreciate all the work you've put into it. Good work! > >I've been using 2.2.7beta6 and found that my prj.el file is now >missing several variables I've customized. The ones I've noticed so >far are: > > jde-compile-option-sourcepath > jde-compile-option-directory > jde-gen-cflow-if > jde-gen-cflow-else > jde-gen-cflow-elseif > jde-gen-cflow-while > jde-gen-cflow-for > >Does anyone else see this? > >Thanks! > > > >Emacs : GNU Emacs 20.7.1 (i386-*-nt5.0.2195) > of Tue Jun 13 2000 on buffy >Package: JDE version 2.2.7beta6 > >current state: >== >(setq > jde-gen-session-bean-template '("(jde-import-insert-imports-into-buffer >(list \"javax.ejb.*\"\n\"java.rmi.RemoteException\"))" >"(jde-wiz-update-implements-clause \"SessionBean\")" "'> \"public void >ejbActivate() throws RemoteException {\"'>'n \"}\"'>'n\n'>'n" "'> \"public >void ejbPassivate() throws RemoteException {\"'>'n \"}\"'>'n\n'>'n" "'> >\"public void ejbRemove() throws RemoteException {\"'>'n \"}\"'>'n '>'n" "'> >\"public void setSessionContext(SessionContext ctx) throws\nRemoteException >{\"" "'>'n \"}\"'>'n '>'n" "'> \"public void unsetSessionContext() throws >RemoteException {\"'>'n\n\"}\"'>'n '>'n'>") > jde-gen-beep '("(end-of-line) '&" >"\"Toolkit.getDefaultToolkit().beep();\"'>'n'>") > jde-project-name "quixote" > jde-which-method-format '("[" jde-which-method-current "]") > jde-run-classic-mode-vm t > jde-javadoc-gen-nodeprecatedlist nil > jde-which-method-max-length 20 > jde-package-search-classpath-variables '(jde-compile-option-classpath >jde-global-classpath) > jde-imenu-include-classdef t > jde-javadoc-gen-link-online nil > jde-gen-code-templates '(("Get Set Pair" . jde-gen-get-set) > ("toString method" . jde-gen-to-string-method) > ("Action Listener" . jde-gen-action-listener) > ("Window Listener" . jde-gen-window-listener) > ("Mouse Listener" . jde-gen-mouse-listener) > ("Mouse Motion Listener" . jde-gen-mouse-motion-listener) > ("Inner Class" . jde-gen-inner-class) ("println" . >jde-gen-println) > ("beep" . jde-gen-beep) > ("property change support" . jde-gen-property-change-support) > ("EJB Entity Bean" . jde-gen-entity-bean) > ("EJB Session Bean" . jde-gen-session-bean)) > jde-gen-cflow-else '("(if (jde-parse-comment-or-quoted-p)" "'(l \"else\")" >"'(l '> \"else \"" > "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" > "\"} // end of else\"'>'n'>)" ")") > jde-make-args "" > jde-javadoc-gen-destination-directory "JavaDoc" > jde-mode-line-format '("-" mode-line-mule-info mode-line-modified >mode-line-frame-identification > mode-line-buffer-identification " " global-mode-string " >%[(" > mode-name mode-line-process minor-mode-alist "%n" ")%]--" > (line-number-mode "L%l--") (column-number-mode "C%c--") (-3 . >"%p") > (jde-which-method-mode ("--" jde-which-method-format "--")) >"-%-") > jde-mode-abbreviations '(("ab" . "abstract") ("bo" . "boolean") ("br" . >"break") ("by" . "byte") > ("byv" . "byvalue") ("cas" . "cast") ("ca" . "catch") ("ch" >. "char") > ("cl" . "class") ("co" . "const") ("con" . "continue") > ("de" . "default") ("dou" . "double") ("el" . "else") ("ex" >. "extends") > ("fa" . "false") ("fi" . "final") ("fin" . "finally") ("fl" >. "float") > ("fo" . "for") ("fu" . "future") ("ge" . "generic") ("go" . >"goto") > ("impl" . "implements") ("impo" . "import") ("ins" . >"instanceof") > ("in" . "int") ("inte" . "interface") ("lo" . "long") ("na" >. "native") > ("ne" . "new") ("nu" . "null") ("pa" . "package") ("pri" . >"private") > ("pro" . "protected") ("pu" . "public") ("re" . "return") > ("sh" . "short") ("st" . "static") ("su" . "super") ("sw" . >"switch") > ("sy" . "synchronized") ("th" . "this") ("thr" . "throw") > ("throw" . "throws") ("tra" . "transient") ("tr" . "true") > ("vo" . "void") ("vol" . "volatile") ("wh" . "while")) > jde-imenu-enable t > jde-compile-option-verbose nil > jde-db-option-heap-size '((1 . "megabytes") (16 . "megabytes")) > jde-bug-debugger-host-add