From: Richard M. Stallman Date: Fri, 8 Mar 1996 21:51:22 +0000 (+0000) Subject: (imenu--menubar-select): Handle the "rescan" item. X-Git-Tag: emacs-19.34~1064 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e63679b8335427b79e72420b05b5ce47220f919f;p=emacs.git (imenu--menubar-select): Handle the "rescan" item. --- 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)