Hi.

I think that I'm missing something, but I got a little problem:
whenever I open a new java file, all of my jde variables are
initialized (hooks included). This has the some unwanted effects (like
not being able to use jde-stack without some tricks, because the
jde-run-mode-hook is nil after loading a new java file). I have tried
emacs --no-init-file, and the same occurs. I do not use projects
files, BTW.

I've tried to redefine the function jde-set-variables-init-value to
this:

(defun jde-set-variables-init-value ()
  "Set each JDE variable to the value it has at Emacs startup."
  (interactive)
  (message "No more Setting JDE variables to startup values..."))

and things seem to work like I expect (there could be some error that
I havent noticed). I do not understand why this function (the
original) is needed, so my questions are:

- Why is jde-set-variables-init-value clearing the jde-* variables
  values?

- How can I set a jde-* variable value (for example,
  jde-run-mode-hook) permanently (currently I use my-jde-mode-hook,
  but I'm tired of adding lines to this hook)?

- What sort of things may have I broken by removing
  jde-set-variables-init-value?

I do suppose that I have misunderstand the basic philosophy of the way
variables are customized for jde-mode. We don't use project files
because we are several developers using jde under the same files (with
some changes control) and each one has his/her own
classpaths/preferences/etc, but maybe the solution could be to do the
effort to adapt us to start using project files.

TIA

JDE 2.1.6beta24
Linux
Emacs 20.5 and 20.3

--
Leon

Reply via email to