From: Chong Yidong Date: Sat, 20 Dec 2008 10:30:06 +0000 (+0000) Subject: (ido-read-internal): Handle `confirm' and `confirm-after-completion' X-Git-Tag: emacs-pretest-23.0.90~949 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7d61c211122656ef33ff2f8bd869683b1bba0dca;p=emacs.git (ido-read-internal): Handle `confirm' and `confirm-after-completion' values for the require-match argument. --- diff --git a/lisp/ido.el b/lisp/ido.el index a25c13c301b..c877102f8ea 100644 --- a/lisp/ido.el +++ b/lisp/ido.el @@ -1803,6 +1803,10 @@ PROMPT is the prompt to give to the user. DEFAULT if given is the default item to start with. If REQUIRE-MATCH is non-nil, an existing file must be selected. If INITIAL is non-nil, it specifies the initial input string." + ;; Ido does not implement the `confirm' and + ;; `confirm-after-completion' values of REQUIRE-MATCH. + (if (memq require-match '(confirm confirm-after-completion)) + (setq require-match nil)) (let ((ido-cur-item item) (ido-entry-buffer (current-buffer))