diff options
| author | Michael Albinus | 2017-05-31 20:32:31 +0200 |
|---|---|---|
| committer | Michael Albinus | 2017-05-31 20:32:31 +0200 |
| commit | ca3622bf2eddc83783d44bb77d77ff60ba0e5611 (patch) | |
| tree | a45522e78f8c3cfc6d16c4fede5e27e4f4434d7f | |
| parent | 24ed64a04c62c8a9689396455af4670dcfc4fe49 (diff) | |
| download | emacs-ca3622bf2eddc83783d44bb77d77ff60ba0e5611.tar.gz emacs-ca3622bf2eddc83783d44bb77d77ff60ba0e5611.zip | |
Fix Bug#27108
* lisp/recentf.el (recentf-load-list): Bind `non-essential',
in order to avoid Tramp password requests during Emacs
startup. (Bug#27108)
| -rw-r--r-- | lisp/recentf.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/recentf.el b/lisp/recentf.el index 4f0573911b9..462ccb6db5e 100644 --- a/lisp/recentf.el +++ b/lisp/recentf.el | |||
| @@ -1304,7 +1304,9 @@ Read data from the file specified by `recentf-save-file'. | |||
| 1304 | When `recentf-initialize-file-name-history' is non-nil, initialize an | 1304 | When `recentf-initialize-file-name-history' is non-nil, initialize an |
| 1305 | empty `file-name-history' with the recent list." | 1305 | empty `file-name-history' with the recent list." |
| 1306 | (interactive) | 1306 | (interactive) |
| 1307 | (let ((file (expand-file-name recentf-save-file))) | 1307 | (let ((file (expand-file-name recentf-save-file)) |
| 1308 | ;; We do not want Tramp asking for passwords. | ||
| 1309 | (non-essential t)) | ||
| 1308 | (when (file-readable-p file) | 1310 | (when (file-readable-p file) |
| 1309 | (load-file file) | 1311 | (load-file file) |
| 1310 | (and recentf-initialize-file-name-history | 1312 | (and recentf-initialize-file-name-history |