diff options
author | Richard M. Stallman <rms@gnu.org> | 2004-05-29 14:35:20 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2004-05-29 14:35:20 +0000 |
commit | bcaa1cef05183ab32df4e1445adf4c84c7fca180 (patch) | |
tree | 783cfa778fa5bd0e2360d749d1e3a5fdd8cd64a3 /lisp/imenu.el | |
parent | 1c795a0e1567ce62d98ff56b4bdf62efb7467f2e (diff) | |
download | emacs-bcaa1cef05183ab32df4e1445adf4c84c7fca180.tar.gz |
(imenu--menubar-select): Set imenu-menubar-modified-tick
and imenu--last-menubar-index-alist.
Diffstat (limited to 'lisp/imenu.el')
-rw-r--r-- | lisp/imenu.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/imenu.el b/lisp/imenu.el index 42f50fba3a4..e0b57440fd8 100644 --- a/lisp/imenu.el +++ b/lisp/imenu.el @@ -890,6 +890,7 @@ Returns t for rescan and otherwise a position number." (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 @@ This value becomes local in every buffer when it is set.") (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) |