summaryrefslogtreecommitdiff
path: root/lisp/recentf.el
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2017-05-31 20:32:31 +0200
committerMichael Albinus <michael.albinus@gmx.de>2017-05-31 20:32:31 +0200
commitca3622bf2eddc83783d44bb77d77ff60ba0e5611 (patch)
treea45522e78f8c3cfc6d16c4fede5e27e4f4434d7f /lisp/recentf.el
parent24ed64a04c62c8a9689396455af4670dcfc4fe49 (diff)
downloademacs-ca3622bf2eddc83783d44bb77d77ff60ba0e5611.tar.gz
Fix Bug#27108
* lisp/recentf.el (recentf-load-list): Bind `non-essential', in order to avoid Tramp password requests during Emacs startup. (Bug#27108)
Diffstat (limited to 'lisp/recentf.el')
-rw-r--r--lisp/recentf.el4
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'.
When `recentf-initialize-file-name-history' is non-nil, initialize an
empty `file-name-history' with the recent list."
(interactive)
- (let ((file (expand-file-name recentf-save-file)))
+ (let ((file (expand-file-name recentf-save-file))
+ ;; We do not want Tramp asking for passwords.
+ (non-essential t))
(when (file-readable-p file)
(load-file file)
(and recentf-initialize-file-name-history