emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master ca3622b: Fix Bug#27108


From: Michael Albinus
Subject: [Emacs-diffs] master ca3622b: Fix Bug#27108
Date: Wed, 31 May 2017 14:32:59 -0400 (EDT)

branch: master
commit ca3622bf2eddc83783d44bb77d77ff60ba0e5611
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>

    Fix Bug#27108
    
    * lisp/recentf.el (recentf-load-list): Bind `non-essential',
    in order to avoid Tramp password requests during Emacs
    startup.  (Bug#27108)
---
 lisp/recentf.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/recentf.el b/lisp/recentf.el
index 4f05739..462ccb6 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]