1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

* lisp/ido.el (ido-file-name-all-completions-1): Do not raise an error

... in case of Tramp.  (Bug#20821)
This commit is contained in:
Michael Albinus 2015-12-13 13:47:40 +01:00
parent 09663d9b91
commit 536f6fc826

View file

@ -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