aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Newton2019-09-20 15:01:47 +0200
committerLars Ingebrigtsen2019-09-20 15:01:52 +0200
commit8b1af4a0bf82a92374d4e8205057880f7d28ede9 (patch)
tree4e457f3b2ce7364ef77419ae55127c9c1cadc020
parent828233009a8c8dcbf58a561ca8fd06bd53198974 (diff)
downloademacs-8b1af4a0bf82a92374d4e8205057880f7d28ede9.tar.gz
emacs-8b1af4a0bf82a92374d4e8205057880f7d28ede9.zip
Fix the previous imenu commit
* lisp/imenu.el (imenu--make-index-alist): Always return the alist (bug#30449). Copyright-paperwork-exempt: yes
-rw-r--r--lisp/imenu.el3
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."
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 (unless imenu-auto-rescan 513 (if imenu-auto-rescan
514 imenu--index-alist
514 ;; Add a rescan option to the index. 515 ;; Add a rescan option to the index.
515 (cons imenu--rescan-item imenu--index-alist))) 516 (cons imenu--rescan-item imenu--index-alist)))
516 517