At 04:04 PM 8/24/99 +0200, you wrote:
>On Tue, Aug 24, 1999 at 09:40:14AM -0400, Paul Kinnucan wrote:
>> At 01:49 PM 8/24/99 +0200, you wrote:
>> >hi,
>> >
>> >i'm not sure i understand why i need infodock to have a menu with
>> >JDEBug, and for sure, i don't have it, therefore, no menu appear for me.
>> >do i really need it, and if yes, why ?
>>
>> The JDE tests for the presence of infodoc but doesn't require it.
>> So the reason you're not seeing a menu lies somewhere else.
>>
Oops, you're right. When I wrote the code for the menu some months ago, I
made a note to myself to provide code for inserting the menu in the XEmacs
menubar and then promptly forgot about it.
Try replacing the current definition of jde-bug-install-jdebug-menu
with the following. I will update this in the repository this evening.
(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."
(if (and
(or
(not jde-xemacsp)
(featurep 'infodock))
(string= (car jde-db-debugger) "jdebug"))
(progn
(use-local-map (nconc (make-sparse-keymap "JDEBug") (current-local-map)))
(easy-menu-do-define 'jde-bug-menu1
(current-local-map)
"Debug menu for JDE."
jde-bug-menu))
(if (and
(not (featurep 'infodock))
(not (memq 'infodock c-emacs-features))
(boundp 'current-menubar)
current-menubar)
(if (fboundp 'add-submenu)
(add-submenu nil jde-bug-menu)
(add-menu nil "JDEBug" (cdr jde-bug-menu))))))
- Paul