I spent a lot of frustrating time to get running the minor-mode menu for =
For GNU Emacs just do a call to `easy-menu-define' and bib is your =
For XEmacs you have to write something like this - at least for
a global-minor-mode (here the snippet from ecb.el):
;; menus - dealing with the menu for XEmacs is really a =
(let ((dummy-buf-name " *dummytogetglobalmap*"))
(set-buffer (get-buffer-create dummy-buf-name))
(add-submenu nil ecb-minor-menu)
(dolist (buf (buffer-list))
(if (null (car (find-menu-item current-menubar
(add-submenu nil ecb-minor-menu)))))
This activates the ECB-menu for each buffer at activation-time ECB - =
this is necessary
because ECB is a global minor mode regardless of the current buffer.
If EDE is a local minor-mode then maybe the following line is enough:
(add-submenu nil ede-minor-menu)
Run this line *after* defining the ede-minor-menu with =
done in ede.el at line 490...
Not tested - but maybe a helpful hint....
Again, dealing with menus in XEmacs is a pain...
Nicolas Pernetty wrote:
> On Tue, 28 Jun 2005 21:36:22 -0400, "Eric M. Ludlam"
> <eric@...> wrote :
>>>> Have just tried, and the menu still doesn't appear.
>>>> I'll try at work tomorrow but I doubt that it's related to the
>>>> configuration (I haven't too much things in my .xemacs directory).
>>>> It will be maybe faster if someone could point me the part which
>>> create > the menu. I will then try to execute it directly and see if
>>> the > problem is in the instructions which create the menu ?
>>> Sorry, I can't help you on this point. Maybe someone else ?
>> [ ... ]
>> ede.el, line 490 is where the menu is created. I didn't do anything
>> on purpose for making the menu work for XEmacs. I know it needs
>> something special but there my experience ends. I was thusly
>> surprised when drkm postulated that it worked for him in XEmacs.
>> Emacs will show menus that show up in the minor-mode-map. XEmacs
>> needs some sort of declaration for a menu to appear. I would be
>> happy to accept a patch that would fix this deficiency.
> I'm a real beginner with (X)emacs, but I'll try to give it a shot and
> make a patch.
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. =
> Cedet-devel mailing list