The lack of key bindings for JDEbug under XEmacs has been annoying me
for a while. As far as I can tell, modern XEmacs use exactly the same
mechanism for establishing minor mode key maps as Emacs. Thus, simply
ripping out the special code that deals with XEmacs in
jde-bug-install-jdebug-menu and jde-bug-remove-jdebug-menu and using the
Emacs code instead should fix the problem:
(defun jde-bug-install-jdebug-menu ()
"Installs the jdebug menu in the current Java source buffer
if the user has selected jdebug as the debugger for the current
project."
(setq jde-bug-minor-mode-p t)
(let ((a (assoc 'jde-bug-minor-mode-p minor-mode-map-alist)))
(if a (setcdr a jde-bug-keymap)
(add-to-list 'minor-mode-map-alist
(cons 'jde-bug-minor-mode-p
jde-bug-keymap)))))
(defun jde-bug-remove-jdebug-menu ()
"Removes the jdebug menu from the menubar of the current Java source
buffer."
(setq jde-bug-minor-mode-p nil))
I've tried this under XEmacs 21.4.6 and it all appears to work fine.
Matthias.