changeset 100051:172ab771edf9

(PC-do-complete-and-exit): Use minibuffer-confirm-exit-commands.
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 29 Nov 2008 21:41:11 +0000
parents 15255001587e
children 766018471339
files lisp/complete.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/complete.el	Sat Nov 29 21:40:51 2008 +0000
+++ b/lisp/complete.el	Sat Nov 29 21:41:11 2008 +0000
@@ -340,7 +340,7 @@
    ((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)))