changeset 55826:e7bdb5b77df2

(imenu--menubar-select): Set imenu-menubar-modified-tick and imenu--last-menubar-index-alist.
author Richard M. Stallman <rms@gnu.org>
date Sat, 29 May 2004 14:35:20 +0000
parents 1709fc8089c9
children c5c73c8c2b3e
files lisp/imenu.el
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/imenu.el	Sat May 29 14:33:28 2004 +0000
+++ b/lisp/imenu.el	Sat May 29 14:35:20 2004 +0000
@@ -890,6 +890,7 @@
       (setq name (completing-read prompt
 				  prepared-index-alist
 				  nil t nil 'imenu--history-list name)))
+
     (cond ((not (stringp name)) nil)
 	  ((string= name (car imenu--rescan-item)) t)
 	  (t
@@ -1015,7 +1016,10 @@
   (if (equal item imenu--rescan-item)
       (progn
 	(imenu--cleanup)
+	;; Make sure imenu-update-menubar redoes everything.
+	(setq imenu-menubar-modified-tick -1)
 	(setq imenu--index-alist nil)
+	(setq imenu--last-menubar-index-alist nil)
 	(imenu-update-menubar)
 	t)
     (imenu item)