[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 536f6fc: * lisp/ido.el (ido-file-name-all-complet
From: |
Michael Albinus |
Subject: |
[Emacs-diffs] emacs-25 536f6fc: * lisp/ido.el (ido-file-name-all-completions-1): Do not raise an error |
Date: |
Sun, 13 Dec 2015 12:48:00 +0000 |
branch: emacs-25
commit 536f6fc826b4cd024bf3b332e8342b9509f77bfb
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>
* lisp/ido.el (ido-file-name-all-completions-1): Do not raise an error
... in case of Tramp. (Bug#20821)
---
lisp/ido.el | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/lisp/ido.el b/lisp/ido.el
index a254b4f..1415b27 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:address@hidden: => nil
;; /ftp:address@hidden:./ => ok
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-25 536f6fc: * lisp/ido.el (ido-file-name-all-completions-1): Do not raise an error,
Michael Albinus <=