From f644886cc0b5bca82c8d206d909011a3f5bb9977 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Mon, 17 Jun 2024 12:42:00 +0200 Subject: [PATCH] Fix Bug#52389 --- lisp/imenu.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lisp/imenu.el b/lisp/imenu.el index b21972f4d81..e9221d33326 100644 --- a/lisp/imenu.el +++ b/lisp/imenu.el @@ -99,10 +99,10 @@ If `on-mouse' use a popup menu when `imenu' was invoked with the mouse." (const :tag "Never" nil) (other :tag "Always" t))) -(defcustom imenu-eager-completion-buffer t +(defcustom imenu-eager-completion-buffer nil "If non-nil, eagerly pop up the completion buffer." :type 'boolean - :version "22.1") + :version "30.1") (defcustom imenu-after-jump-hook nil "Hooks called after jumping to a place in the buffer. @@ -771,8 +771,7 @@ Return one of the entries in index-alist or nil." (if transform s (get-text-property 0 'imenu-section s))))))) - (unless imenu-eager-completion-buffer - (minibuffer-completion-help))) + (when imenu-eager-completion-buffer (minibuffer-completion-help))) (setq name (completing-read prompt prepared-index-alist nil t nil 'imenu--history-list name))) -- 2.39.2