From 7d61c211122656ef33ff2f8bd869683b1bba0dca Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Sat, 20 Dec 2008 10:30:06 +0000 Subject: [PATCH] (ido-read-internal): Handle `confirm' and `confirm-after-completion' values for the require-match argument. --- lisp/ido.el | 4 ++++ 1 file changed, 4 insertions(+) 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)) -- 2.39.2