]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix Bug#52389
authorEshel Yaron <me@eshelyaron.com>
Mon, 17 Jun 2024 10:42:00 +0000 (12:42 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 17 Jun 2024 10:43:52 +0000 (12:43 +0200)
lisp/imenu.el

index b21972f4d8139abcf12adee90f92507638c761db..e9221d33326ba5b0d720d82acd828f30a1a3cb2e 100644 (file)
@@ -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)))