diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-03-08 21:51:22 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-03-08 21:51:22 +0000 |
commit | c46abe2b3e819b4534e937a7d7a910166bacd925 (patch) | |
tree | 94ffad4241ec66e3dc8463846b87a76548710f21 /lisp | |
parent | 51fd596c44a542a504c2cc352ee4eab6f8bb7a76 (diff) | |
download | emacs-c46abe2b3e819b4534e937a7d7a910166bacd925.tar.gz |
(imenu--menubar-select): Handle the "rescan" item.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/imenu.el | 7 |
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) |