>>>> "nbecker" == <nbecker(a)fred.net>
writes:
nbecker> Clicking on the menu item Im-python gives this error:
nbecker> Menu name (first element) must be a string: (nil)
Okay, I dug up Hrvoje's fix and checked the 1.29 version of
xemacs-base. Indeed this patch has never been checked in, but it
should be.
-Barry
1998-11-30 Hrvoje Niksic <hniksic(a)srce.hr>
* imenu.el (imenu--create-menu-1): Handle empty menu.
--- xemacs-base/imenu.el.orig Mon Nov 30 20:44:55 1998
+++ xemacs-base/imenu.el Mon Nov 30 21:23:20 1998
@@ -802,7 +802,7 @@
t))))
(defun imenu--create-menu-1 (title list)
- (cons title (mapcar 'imenu--create-menu-2 list)))
+ (cons title (mapcar 'imenu--create-menu-2 (delq nil list))))
(defun imenu--mouse-menu (index-alist event &optional title)
"Let the user select from a buffer index from a mouse menu.