Commit 8b1af4a0 authored by Matthew Newton's avatar Matthew Newton Committed by Lars Ingebrigtsen

Fix the previous imenu commit

* lisp/imenu.el (imenu--make-index-alist): Always return the alist
(bug#30449).

Copyright-paperwork-exempt: yes
parent 82823300
Pipeline #3212 passed with stage
in 54 minutes and 18 seconds
......@@ -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)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment