From: Eshel Yaron Date: Mon, 17 Jun 2024 10:42:00 +0000 (+0200) Subject: Fix Bug#52389 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f644886cc0b5bca82c8d206d909011a3f5bb9977;p=emacs.git Fix Bug#52389 --- 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)))