diff options
| author | Lars Ingebrigtsen | 2019-09-17 01:39:37 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-09-17 01:39:37 +0200 |
| commit | 8635147ccba1fc8e1010010da8c3f8e467562f76 (patch) | |
| tree | b3653d5be63847caaae07ed0f7c0cf566e1685d2 | |
| parent | 3a6b5e6ad0173dfe164640e8a09bf465f78836cb (diff) | |
| download | emacs-8635147ccba1fc8e1010010da8c3f8e467562f76.tar.gz emacs-8635147ccba1fc8e1010010da8c3f8e467562f76.zip | |
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).
| -rw-r--r-- | lisp/imenu.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/imenu.el b/lisp/imenu.el index 5084fe61eff..9df597b4d63 100644 --- a/lisp/imenu.el +++ b/lisp/imenu.el | |||
| @@ -510,8 +510,9 @@ See `imenu--index-alist' for the format of the index alist." | |||
| 510 | "No items suitable for an index found in this buffer")) | 510 | "No items suitable for an index found in this buffer")) |
| 511 | (or imenu--index-alist | 511 | (or imenu--index-alist |
| 512 | (setq imenu--index-alist (list nil))) | 512 | (setq imenu--index-alist (list nil))) |
| 513 | ;; Add a rescan option to the index. | 513 | (unless imenu-auto-rescan |
| 514 | (cons imenu--rescan-item imenu--index-alist)) | 514 | ;; Add a rescan option to the index. |
| 515 | (cons imenu--rescan-item imenu--index-alist))) | ||
| 515 | 516 | ||
| 516 | (defvar imenu--cleanup-seen nil) | 517 | (defvar imenu--cleanup-seen nil) |
| 517 | 518 | ||