From e63679b8335427b79e72420b05b5ce47220f919f Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 8 Mar 1996 21:51:22 +0000 Subject: [PATCH] (imenu--menubar-select): Handle the "rescan" item. --- lisp/imenu.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) -- 2.39.2