From 8b1af4a0bf82a92374d4e8205057880f7d28ede9 Mon Sep 17 00:00:00 2001 From: Matthew Newton Date: Fri, 20 Sep 2019 15:01:47 +0200 Subject: [PATCH] Fix the previous imenu commit * lisp/imenu.el (imenu--make-index-alist): Always return the alist (bug#30449). Copyright-paperwork-exempt: yes --- lisp/imenu.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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))) -- 2.39.5