diff options
| author | Leo Liu | 2011-03-20 18:35:27 +0800 |
|---|---|---|
| committer | Leo Liu | 2011-03-20 18:35:27 +0800 |
| commit | 3ec03f7e4696b4af1af7e1a2fef2a64ccb9224c2 (patch) | |
| tree | 7db63336e461f8cfbd27a5fcbfcfac5e12688739 /lisp | |
| parent | 7d476bdec543cfba684a4d63b8a6bbeb775c75c3 (diff) | |
| download | emacs-3ec03f7e4696b4af1af7e1a2fef2a64ccb9224c2.tar.gz emacs-3ec03f7e4696b4af1af7e1a2fef2a64ccb9224c2.zip | |
New variable completing-read-function to customize completing-read
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/ido.el | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4e71d355886..fe45788d888 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-03-20 Leo <sdl.web@gmail.com> | ||
| 2 | |||
| 3 | * ido.el (ido-read-internal): Use completing-read-default. | ||
| 4 | (ido-completing-read): Fix compatibility with completing-read. | ||
| 5 | |||
| 1 | 2011-03-20 Christian Ohler <ohler@gnu.org> | 6 | 2011-03-20 Christian Ohler <ohler@gnu.org> |
| 2 | 7 | ||
| 3 | * emacs-lisp/ert.el (ert-run-tests-batch): Remove unused variable. | 8 | * emacs-lisp/ert.el (ert-run-tests-batch): Remove unused variable. |
diff --git a/lisp/ido.el b/lisp/ido.el index 2e67e367a8f..2a5c7cf2f0e 100644 --- a/lisp/ido.el +++ b/lisp/ido.el | |||
| @@ -1983,7 +1983,7 @@ If INITIAL is non-nil, it specifies the initial input string." | |||
| 1983 | (setq ido-exit nil) | 1983 | (setq ido-exit nil) |
| 1984 | (setq ido-final-text | 1984 | (setq ido-final-text |
| 1985 | (catch 'ido | 1985 | (catch 'ido |
| 1986 | (completing-read | 1986 | (completing-read-default |
| 1987 | (ido-make-prompt item prompt) | 1987 | (ido-make-prompt item prompt) |
| 1988 | '(("dummy" . 1)) nil nil ; table predicate require-match | 1988 | '(("dummy" . 1)) nil nil ; table predicate require-match |
| 1989 | (prog1 ido-text-init (setq ido-text-init nil)) ;initial-contents | 1989 | (prog1 ido-text-init (setq ido-text-init nil)) ;initial-contents |
| @@ -4740,13 +4740,13 @@ See `read-directory-name' for additional parameters." | |||
| 4740 | (concat ido-current-directory filename))))) | 4740 | (concat ido-current-directory filename))))) |
| 4741 | 4741 | ||
| 4742 | ;;;###autoload | 4742 | ;;;###autoload |
| 4743 | (defun ido-completing-read (prompt choices &optional predicate require-match initial-input hist def) | 4743 | (defun ido-completing-read (prompt choices &optional predicate require-match initial-input hist def inherit-input-method) |
| 4744 | "Ido replacement for the built-in `completing-read'. | 4744 | "Ido replacement for the built-in `completing-read'. |
| 4745 | Read a string in the minibuffer with ido-style completion. | 4745 | Read a string in the minibuffer with ido-style completion. |
| 4746 | PROMPT is a string to prompt with; normally it ends in a colon and a space. | 4746 | PROMPT is a string to prompt with; normally it ends in a colon and a space. |
| 4747 | CHOICES is a list of strings which are the possible completions. | 4747 | CHOICES is a list of strings which are the possible completions. |
| 4748 | PREDICATE is currently ignored; it is included to be compatible | 4748 | PREDICATE and INHERIT-INPUT-METHOD is currently ignored; it is included |
| 4749 | with `completing-read'. | 4749 | to be compatible with `completing-read'. |
| 4750 | If REQUIRE-MATCH is non-nil, the user is not allowed to exit unless | 4750 | If REQUIRE-MATCH is non-nil, the user is not allowed to exit unless |
| 4751 | the input is (or completes to) an element of CHOICES or is null. | 4751 | the input is (or completes to) an element of CHOICES or is null. |
| 4752 | If the input is null, `ido-completing-read' returns DEF, or an empty | 4752 | If the input is null, `ido-completing-read' returns DEF, or an empty |