diff options
| author | Kim F. Storm | 2005-08-15 12:29:54 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2005-08-15 12:29:54 +0000 |
| commit | edc42f569e7e2a36de59274730479731daef5220 (patch) | |
| tree | 6de54a36bc07307b1dc5ad63b5a7634fb8f607ca | |
| parent | 0781c30389413e89ed51ff7aca05db18c6dec205 (diff) | |
| download | emacs-edc42f569e7e2a36de59274730479731daef5220.tar.gz emacs-edc42f569e7e2a36de59274730479731daef5220.zip | |
(ido-buffer-internal): Use with-no-warnings.
(ido-make-merged-file-list): Use while-no-input.
| -rw-r--r-- | lisp/ido.el | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/ido.el b/lisp/ido.el index 7b8e8c726ef..d0e6af667e8 100644 --- a/lisp/ido.el +++ b/lisp/ido.el | |||
| @@ -1959,7 +1959,9 @@ If INITIAL is non-nil, it specifies the initial input string." | |||
| 1959 | (if (eq method 'insert) | 1959 | (if (eq method 'insert) |
| 1960 | (progn | 1960 | (progn |
| 1961 | (ido-record-command 'insert-buffer buf) | 1961 | (ido-record-command 'insert-buffer buf) |
| 1962 | (insert-buffer buf)) | 1962 | (with-no-warnings |
| 1963 | ;; we really want to run insert-buffer here | ||
| 1964 | (insert-buffer buf))) | ||
| 1963 | (ido-visit-buffer buf method t))) | 1965 | (ido-visit-buffer buf method t))) |
| 1964 | 1966 | ||
| 1965 | ;; buffer doesn't exist | 1967 | ;; buffer doesn't exist |
| @@ -3012,11 +3014,10 @@ for first matching file." | |||
| 3012 | (let (res) | 3014 | (let (res) |
| 3013 | (message "Searching for `%s'...." text) | 3015 | (message "Searching for `%s'...." text) |
| 3014 | (condition-case nil | 3016 | (condition-case nil |
| 3015 | (unless (catch 'input-pending-p | 3017 | (if (eq t (setq res |
| 3016 | (let ((throw-on-input 'input-pending-p)) | 3018 | (while-no-input |
| 3017 | (setq res (ido-make-merged-file-list-1 text auto wide)) | 3019 | (ido-make-merged-file-list-1 text auto wide)))) |
| 3018 | t)) | 3020 | (setq res 'input-pending-p)) |
| 3019 | (setq res 'input-pending-p)) | ||
| 3020 | (quit | 3021 | (quit |
| 3021 | (setq res t | 3022 | (setq res t |
| 3022 | ido-try-merged-list nil | 3023 | ido-try-merged-list nil |