]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid unexpected implicit completion in find-func.el
authorEli Zaretskii <eliz@gnu.org>
Sun, 13 Aug 2023 06:34:20 +0000 (09:34 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 13 Aug 2023 06:34:20 +0000 (09:34 +0300)
* lisp/emacs-lisp/find-func.el (find-function-read): Don't allow
implicit completion, which could produce unexpected results.
Patch by Jens Schmidt <jschmidt4gnu@vodafonemail.de>.  (Bug#65058)

lisp/emacs-lisp/find-func.el

index bf890fc35a91cbbb99319d9e04ca337af2f0885a..d393ccc759af2a10b042eeb65cf44e059ddf2227 100644 (file)
@@ -591,7 +591,7 @@ otherwise uses `variable-at-point'."
     (list (intern (completing-read
                    (format-prompt "Find %s" symb prompt-type)
                    obarray predicate
-                   t nil nil (and symb (symbol-name symb)))))))
+                   'lambda nil nil (and symb (symbol-name symb)))))))
 
 (defun find-function-do-it (symbol type switch-fn)
   "Find Emacs Lisp SYMBOL in a buffer and display it.