I found the problem : some of my files contains -*- Java -*- on the 
first line !
I had never noticed that it could have any influance on emacs.

So I fixed the problem with the line :
(add-to-list 'inhibit-first-line-modes-regexps "\\.java\\'")

in my .emacs

Laurent

Laurent Mirguet wrote:

> Hello,
> 
> I get this weird problem that for some java files located in certain 
> directories, emacs doesn't enter in jde-mode.
> 
> My .emacs file is like in the documentation :
> (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))
> 
> And it works for the java files located in some other directories.
> 
> I use GNU emacs 20.7.1 on Linux.
> 
> Would you have an idea which would solve this problem ?
> Do you think that upgrading emacs to emacs21 may help ?
> 
> Thank you for your answers.
> Laurent Mirguet
> 
> 
> 



Reply via email to