From: Michael Albinus Date: Sun, 13 Dec 2015 12:47:40 +0000 (+0100) Subject: * lisp/ido.el (ido-file-name-all-completions-1): Do not raise an error X-Git-Tag: emacs-25.0.90~478 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=536f6fc826b4cd024bf3b332e8342b9509f77bfb;p=emacs.git * lisp/ido.el (ido-file-name-all-completions-1): Do not raise an error ... in case of Tramp. (Bug#20821) --- diff --git a/lisp/ido.el b/lisp/ido.el index a254b4fefcf..1415b27a3a7 100644 --- a/lisp/ido.el +++ b/lisp/ido.el @@ -3559,7 +3559,9 @@ it is put to the start of the list." (let* ((len (1- (length dir))) (non-essential t) (compl - (or (file-name-all-completions "" dir) + (or ;; We do not want to be disturbed by "File does not + ;; exist" errors. + (ignore-errors (file-name-all-completions "" dir)) ;; work around bug in ange-ftp. ;; /ftp:user@host: => nil ;; /ftp:user@host:./ => ok