From 118a0e96d0f5b4c269eba66d8fbddaf1915b27cf Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Sat, 17 Feb 2024 12:06:45 +0100 Subject: [PATCH] ; Improve message when REQUIRE-MATCH function denies exiting * lisp/minibuffer.el (minibuffer-force-complete): Disregard 'completion-fail-discreetly', since we are not failing completion. Improve message. --- lisp/minibuffer.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index d4b808b1584..5fefb19968a 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -2135,9 +2135,7 @@ appear to be a match." (if (funcall minibuffer-completion-confirm (buffer-substring beg end)) (funcall exit-function) - (unless completion-fail-discreetly - (ding) - (completion--message "No match")))) + (completion--message "Can't exit minibuffer with current input"))) ;; See if we have a completion from the table. ((test-completion (buffer-substring beg end) minibuffer-completion-table -- 2.39.5