"Barry A. Warsaw" <bwarsaw(a)cnri.reston.va.us> writes:
I think there's a problem with Imenu when a buffer has no
functions
in it. (...)
Does this patch help?
1998-11-30 Hrvoje Niksic <hniksic(a)srce.hr>
* imenu.el (imenu--create-menu-2): Handle empty menu.
--- xemacs-base/imenu.el.orig Mon Nov 30 20:44:55 1998
+++ xemacs-base/imenu.el Mon Nov 30 20:50:20 1998
@@ -792,7 +792,9 @@
choice)))))
(defun imenu--create-menu-2 (list)
- (cond ((listp (cdr list))
+ (cond ((null list)
+ "Nada")
+ ((listp (cdr list))
(imenu--create-menu-1 (car list) (cdr list)))
(t
(vector (car list)