From: Juri Linkov Date: Thu, 9 Nov 2023 16:24:48 +0000 (+0200) Subject: * lisp/minibuffer.el (minibuffer-choose-completion-or-exit): Improve. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=978ebe8a19914977f3a2d31e9f07a94242d677e6;p=emacs.git * lisp/minibuffer.el (minibuffer-choose-completion-or-exit): Improve. Use minibuffer-complete-and-exit instead of exit-minibuffer since this is what it's used in the completion minibuffer. --- diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index d84e92fc013..3e2e3b6c6f2 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -4695,7 +4695,7 @@ contents." (interactive "P") (condition-case nil (minibuffer-choose-completion no-exit no-quit) - (error (exit-minibuffer)))) + (error (minibuffer-complete-and-exit)))) (defun minibuffer-complete-history () "Complete the minibuffer history as far as possible.