changeset 14796:29e7001fecf0

(imenu--menubar-select): Handle the "rescan" item.
author Richard M. Stallman <rms@gnu.org>
date Fri, 08 Mar 1996 21:51:22 +0000
parents a668c56171b2
children a790ae4a71ba
files lisp/imenu.el
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/imenu.el	Fri Mar 08 20:31:40 1996 +0000
+++ b/lisp/imenu.el	Fri Mar 08 21:51:22 1996 +0000
@@ -833,7 +833,12 @@
 
 (defun imenu--menubar-select (item)
   "Use Imenu to select the function or variable named in this menu item."
-  (imenu item))
+  (if (equal item '("*Rescan*" . -99))
+      (progn
+	(imenu--cleanup)
+	(setq imenu--index-alist nil)
+	(imenu-update-menubar))
+    (imenu item)))
 
 ;;;###autoload
 (defun imenu (index-item)