diff options
author | Matthew Newton <matt@mnewton.com> | 2019-09-20 15:01:47 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2019-09-20 15:01:52 +0200 |
commit | 8b1af4a0bf82a92374d4e8205057880f7d28ede9 (patch) | |
tree | 4e457f3b2ce7364ef77419ae55127c9c1cadc020 /lisp/imenu.el | |
parent | 828233009a8c8dcbf58a561ca8fd06bd53198974 (diff) | |
download | emacs-8b1af4a0bf82a92374d4e8205057880f7d28ede9.tar.gz |
Fix the previous imenu commit
* lisp/imenu.el (imenu--make-index-alist): Always return the alist
(bug#30449).
Copyright-paperwork-exempt: yes
Diffstat (limited to 'lisp/imenu.el')
-rw-r--r-- | lisp/imenu.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/imenu.el b/lisp/imenu.el index 9df597b4d63..f8bfc4046c8 100644 --- a/lisp/imenu.el +++ b/lisp/imenu.el @@ -510,7 +510,8 @@ 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))) - (unless imenu-auto-rescan + (if imenu-auto-rescan + imenu--index-alist ;; Add a rescan option to the index. (cons imenu--rescan-item imenu--index-alist))) |