]> git.eshelyaron.com Git - emacs.git/commitdiff
(ido-read-internal): Handle `confirm' and `confirm-after-completion'
authorChong Yidong <cyd@stupidchicken.com>
Sat, 20 Dec 2008 10:30:06 +0000 (10:30 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 20 Dec 2008 10:30:06 +0000 (10:30 +0000)
values for the require-match argument.

lisp/ido.el

index a25c13c301bffefcf523237776ed58e9e5ef243f..c877102f8ead9db5d7633041e6a062a0931bcf90 100644 (file)
@@ -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))