# HG changeset patch # User Richard M. Stallman # Date 1085841320 0 # Node ID e7bdb5b77df25c3ba8eb9fef89a65aa9df105253 # Parent 1709fc8089c9100c8925acbf1bcd06920d2c86c1 (imenu--menubar-select): Set imenu-menubar-modified-tick and imenu--last-menubar-index-alist. diff -r 1709fc8089c9 -r e7bdb5b77df2 lisp/imenu.el --- 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)