mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 09:14:18 +00:00
Fix imenu menu when we're auto-refreshing
* lisp/imenu.el (imenu--make-index-alist): Don't add a *Refresh* item if we're auto-refreshing (bug#30449).
This commit is contained in:
parent
3a6b5e6ad0
commit
8635147ccb
1 changed files with 3 additions and 2 deletions
|
|
@ -510,8 +510,9 @@ See `imenu--index-alist' for the format of the index alist."
|
|||
"No items suitable for an index found in this buffer"))
|
||||
(or imenu--index-alist
|
||||
(setq imenu--index-alist (list nil)))
|
||||
;; Add a rescan option to the index.
|
||||
(cons imenu--rescan-item imenu--index-alist))
|
||||
(unless imenu-auto-rescan
|
||||
;; Add a rescan option to the index.
|
||||
(cons imenu--rescan-item imenu--index-alist)))
|
||||
|
||||
(defvar imenu--cleanup-seen nil)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue