comparison lisp/ido.el @ 100594:e26b0f24c1e1

(ido-read-internal): Handle `confirm' and `confirm-after-completion' values for the require-match argument.
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 20 Dec 2008 10:30:06 +0000
parents d42aff5ca541
children a9dc0e7c3f2b
comparison
equal deleted inserted replaced
100593:76cdf125b2f5 100594:e26b0f24c1e1
1801 Return the name of a buffer or file selected. 1801 Return the name of a buffer or file selected.
1802 PROMPT is the prompt to give to the user. 1802 PROMPT is the prompt to give to the user.
1803 DEFAULT if given is the default item to start with. 1803 DEFAULT if given is the default item to start with.
1804 If REQUIRE-MATCH is non-nil, an existing file must be selected. 1804 If REQUIRE-MATCH is non-nil, an existing file must be selected.
1805 If INITIAL is non-nil, it specifies the initial input string." 1805 If INITIAL is non-nil, it specifies the initial input string."
1806 ;; Ido does not implement the `confirm' and
1807 ;; `confirm-after-completion' values of REQUIRE-MATCH.
1808 (if (memq require-match '(confirm confirm-after-completion))
1809 (setq require-match nil))
1806 (let 1810 (let
1807 ((ido-cur-item item) 1811 ((ido-cur-item item)
1808 (ido-entry-buffer (current-buffer)) 1812 (ido-entry-buffer (current-buffer))
1809 (ido-process-ignore-lists t) 1813 (ido-process-ignore-lists t)
1810 (ido-process-ignore-lists-inhibit nil) 1814 (ido-process-ignore-lists-inhibit nil)