This works for me, but I have it after a "(require 'jde)" in my
.emacs. Putting it
before the require statement results in JDE clobbering the old value
during its load.

Suraj 

----- Original Message -----
From: Berndl, Klaus <[EMAIL PROTECTED]>
Date: Tue, 1 Jun 2004 14:38:43 +0200 
Subject: Customizing jde-entering-java-buffer-hook
To: [EMAIL PROTECTED]









Why is it not 
possible to do the following:

 

(add-hook 
'jde-entering-java-buffer-hook
           
'ecb-jde-update-ecb-source-paths)

 

When i add this to 
my .emacs then the default-value of this hook is lost and only 


ecb-jde-update-ecb-source-paths is contained in this hook 
var.

 

I assume this comes 
from the autom. checking and setting etc. of the jde-options

for project switches 
etc....

 

But IMHO such hooks 
should be setable via add-hook - especially if such a hook 
is

project-independent 
- and this hoom seems to be not project-centric because per

default the function 
`jde-reload-project-file' is contained in this hook and this 
fuinction

reloads a 
project-file!

 

isn there a way to 
add function to such a hook from elisp and not via a 
customize-

buffer? Would the 
following help:

 

(customize-set-variable 
'jde-entering-java-buffer-hook

            
'(new sensefull value for this 
hook))

 

Ciao,

Klaus



 

Klaus 
Berndl                     
mailto: [EMAIL PROTECTED]
sd&m 
AG                         
http://www.sdm.de
software design & management

Carl-Wery-Str. 42, 81739 Muenchen, Germany

Tel +49 89 63812-392, Fax -220

Reply via email to