# HG changeset patch # User Kim F. Storm # Date 1124108994 0 # Node ID 1a1aa1eae3b3fc78fc125e6ba8be97666bc17b74 # Parent d912e5d238ec655cf9f103eb87d89db42b625ca3 (ido-buffer-internal): Use with-no-warnings. (ido-make-merged-file-list): Use while-no-input. diff -r d912e5d238ec -r 1a1aa1eae3b3 lisp/ido.el --- a/lisp/ido.el Mon Aug 15 12:29:38 2005 +0000 +++ b/lisp/ido.el Mon Aug 15 12:29:54 2005 +0000 @@ -1959,7 +1959,9 @@ (if (eq method 'insert) (progn (ido-record-command 'insert-buffer buf) - (insert-buffer buf)) + (with-no-warnings + ;; we really want to run insert-buffer here + (insert-buffer buf))) (ido-visit-buffer buf method t))) ;; buffer doesn't exist @@ -3012,11 +3014,10 @@ (let (res) (message "Searching for `%s'...." text) (condition-case nil - (unless (catch 'input-pending-p - (let ((throw-on-input 'input-pending-p)) - (setq res (ido-make-merged-file-list-1 text auto wide)) - t)) - (setq res 'input-pending-p)) + (if (eq t (setq res + (while-no-input + (ido-make-merged-file-list-1 text auto wide)))) + (setq res 'input-pending-p)) (quit (setq res t ido-try-merged-list nil