summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2008-12-20 10:30:06 +0000
committerChong Yidong <cyd@stupidchicken.com>2008-12-20 10:30:06 +0000
commit5abbc8e93897454e9839b4d9febcf7966dbbfe9e (patch)
tree4eba093fee243fca4b8778545cf2da884fafac7a /lisp
parentacc490455ed813b1c6d6689cfb3d76795f3b9479 (diff)
downloademacs-5abbc8e93897454e9839b4d9febcf7966dbbfe9e.tar.gz
(ido-read-internal): Handle `confirm' and `confirm-after-completion'
values for the require-match argument.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ido.el4
1 files changed, 4 insertions, 0 deletions
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))