]> code.delx.au - gnu-emacs/commitdiff
* lisp/ido.el (ido-file-name-all-completions-1): Do not raise an error
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 13 Dec 2015 12:47:40 +0000 (13:47 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 13 Dec 2015 12:47:40 +0000 (13:47 +0100)
... in case of Tramp.  (Bug#20821)

lisp/ido.el

index a254b4fefcfc26c3c8b28ce8992f7a14b576c9e3..1415b27a3a70f7a5d9660801eb318353f005aaa6 100644 (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