diff options
author | Tassilo Horn <tsdh@gnu.org> | 2019-09-22 11:02:39 +0200 |
---|---|---|
committer | Tassilo Horn <tsdh@gnu.org> | 2019-09-22 11:02:39 +0200 |
commit | af0642a4cb220f33a43d1380be085bc0b7134bb8 (patch) | |
tree | e3b1b57bc42e712c77bd55fc4fc722cf93fe6c66 /lisp/imenu.el | |
parent | 8992bc7d1b7e7babbf2899b5c45e84b486f504e6 (diff) | |
parent | 37a4233a366797360c2f4f475591a3406586bcfb (diff) | |
download | emacs-scratch/tsdh-vc-list-files.tar.gz |
Merge remote-tracking branch 'origin/master' into scratch/tsdh-vc-list-filesscratch/tsdh-vc-list-files
Diffstat (limited to 'lisp/imenu.el')
-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." "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) |