The following message is a courtesy copy of an article
that has been posted to comp.emacs.xemacs as well.
[Copying this to xemacs-beta. Context for people there: The following
description applies to toggling of math mode in AUCTeX.]
* Rick Baartman (2005-02-24) writes:
One last little thing, not very important but nevertheless a bug:
If I use the popup and then turn Math Mode on (C-c ~), the two entries
expand to 3 as it should, but then if I toggle C-c ~ again, both the Math
and the LaTeX menus disappear from the popup leaving only Command. I can
get it back by toggling again, but as I said it now toggles only between 3
entries and 1 entry.
It seems that this is a bug in `easy-menu-remove' which strips all
menus except the "Command" menu from `mode-popup-menu'. The following
change in easymenu.el should fix this:
--- easymenu.el 12 Apr 2001 20:21:17 +0200 1.5
+++ easymenu.el 24 Feb 2005 19:20:30 +0100
@@ -203,7 +203,7 @@
"Remove MENU from the current menu bar."
(when (featurep 'menubar)
(setq easy-menu-all-popups (delq menu easy-menu-all-popups)
- mode-popup-menu (if (< (length easy-menu-all-popups) 1)
+ mode-popup-menu (if (> (length easy-menu-all-popups) 1)
(cons (easy-menu-title)
(reverse easy-menu-all-popups))
(let ((same-as-menu
The patch applies to HEAD of the release-21-4 branch. AFAICS 21.5
suffers from the same problem.
--
Ralf