I notice that jde.el includes the following form:
;; Make jde-mode the default mode for Java source code buffers.
;; Prepend the jde-mode entry so that it shadows the java-mode
;; entry already in the list.
;;;###autoload
(setq auto-mode-alist
(append
'(("\\.java\\'" . jde-mode))
auto-mode-alist))
Assuming the user generates a loaddefs file (as I do), this form gets
evaluated twice: once in loaddefs.el, once in jde.el. So, the specified form
appears twice in auto-mode-list. Not a major problem, but can be confusing.
The problem of duplicate entries can be fixed by changing the operation to be
idempotent:
(add-to-list
'auto-mode-alist
'("\\.java\\'" . jde-mode))
Thanks as usual for the work on the JDE.
--
Jim Davidson
jdavidson @ acm.org