summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-03-08 21:51:22 +0000
committerRichard M. Stallman <rms@gnu.org>1996-03-08 21:51:22 +0000
commitc46abe2b3e819b4534e937a7d7a910166bacd925 (patch)
tree94ffad4241ec66e3dc8463846b87a76548710f21 /lisp
parent51fd596c44a542a504c2cc352ee4eab6f8bb7a76 (diff)
downloademacs-c46abe2b3e819b4534e937a7d7a910166bacd925.tar.gz
(imenu--menubar-select): Handle the "rescan" item.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/imenu.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/imenu.el b/lisp/imenu.el
index b97f951c3a4..a8d9d1567d8 100644
--- a/lisp/imenu.el
+++ b/lisp/imenu.el
@@ -833,7 +833,12 @@ See the command `imenu' for more information."
(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)