Mercurial > emacs
diff lisp/imenu.el @ 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 | eae53a7dcf03 |
children | 8557ab78a821 |
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)