From a88510924f90cbbd26ab701409bb6f378c55cc94 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Sat, 29 Nov 2008 21:41:11 +0000 Subject: [PATCH] (PC-do-complete-and-exit): Use minibuffer-confirm-exit-commands. --- lisp/complete.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/complete.el b/lisp/complete.el index f60763e4250..b53addf2099 100644 --- a/lisp/complete.el +++ b/lisp/complete.el @@ -340,7 +340,7 @@ See `PC-complete' for details." ((eq minibuffer-completion-confirm 'confirm-after-completion) ;; Similar to the above, but only if trying to exit immediately ;; after typing TAB (this catches most minibuffer typos). - (if (and (memq last-command '(PC-complete minibuffer-complete)) + (if (and (memq last-command minibuffer-confirm-exit-commands) (not (test-completion (field-string) minibuffer-completion-table minibuffer-completion-predicate))) -- 2.39.2