Thanks, Paul. I found and read an archived email from Aug 13 titled
"Saving Only Changed Variables in prj.el files", which gave me a
better appreciation of the complexity of this issue.
I guess then I better take a step back and tell you what I am trying
to do and ask the best way to do it:
I have two kinds of java source files, with different extensions,
specifically ".java" and ".coll". I want to use a different
"compiler" for each type of file (as well as eventually adjust the
imenu regexps differently for each).
So, I defined a derived mode coll-mode as follows (and added it to the
auto-mode-alist):
(define-derived-mode coll-mode jde-mode "JDE-Coll"
"..."
(make-local-variable 'jde-compiler)
(setq jde-compiler "collc")
)
I am also using the faster Cafe compiler instead of javac for regular
.java files (I will eventually try jikes as you recommend):
(add-hook 'jde-mode-hook
(function
(lambda ()
(make-local-variable 'jde-compiler)
(setq jde-compiler "sj")
...)))
This seems to work ok, but is it the "correct" thing to do with all the
jde projects files and customization stuff going on?
Btw, the usual way I would do this would be to do a toplevel
(setq-default jde-compiler "sj") instead of the jde-mode-hook
code above, but I discovered that does not work, due to
jde-set-variables-init-value.
Thanks in advance, -Chuck
> X-Sender: [EMAIL PROTECTED]
> Date: Mon, 24 Apr 2000 17:22:59 -0400
> From: Paul Kinnucan <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="us-ascii"
>
> At 03:58 PM 4/24/00 -0400, you wrote:
> >I think it would be more consistent with usage and documentation
> >to add
> >
> > (make-local-variable 'jde-compiler)
> >
> >to the other local variables at start of jde-mode-internal.
> >
>
> Glad to do it if you can show me how to get customize to update buffer
> local variables.
>
> See the archives for my posts about why the JDE project file system
> requires that all jde variables be global.
>
> - Paul
>
>
> ------------------------------------------------------------
> TECH SUPPORT POLICY
>
> I respond only to requests that contain a complete problem report. The
> easiest way to ensure that your report is complete is to include the output
> of the JDE->Help->Submit Problem Report command in your request.
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> JDE website: http://sunsite.auc.dk/jde/
>
> JDE mailing list archive:
> http://www.mail-archive.com/[email protected]/maillist.html
>
--
Charles Rich | Mitsubishi Electric Research Laboratory (MERL)
617-621-7507 phone | 201 Broadway
617-621-7550 fax | Cambridge, MA 02139
[EMAIL PROTECTED] | http://www.merl.com