emacs-diffs
[Top][All Lists]
Advanced

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

master 173d49b: * doc/misc/tramp.texi (Frequently Asked Questions): New


From: Michael Albinus
Subject: master 173d49b: * doc/misc/tramp.texi (Frequently Asked Questions): New item about recentf.
Date: Thu, 8 Apr 2021 10:35:12 -0400 (EDT)

branch: master
commit 173d49b03ac945b700354f88b34fa61ea4000b42
Author: Michael Albinus <michael.albinus@gmx.de>
Commit: Michael Albinus <michael.albinus@gmx.de>

    * doc/misc/tramp.texi (Frequently Asked Questions): New item about recentf.
---
 doc/misc/tramp.texi | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index 5ea0275..40245ac 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -5067,6 +5067,33 @@ remote files}.
 
 
 @item
+How to prevent @value{tramp} from clearing the @code{recentf-list}?
+
+When @value{tramp} cleans a connection, it removes the respective
+remote file name(s) from @code{recentf-list}.  This is needed, because
+an unresponsive remote host could trigger @code{recentf} to connect
+that host again and again.
+
+If you find the cleanup disturbing, because the file names in
+@code{recentf-list} are precious to you, you could add the following
+two forms in your @file{~/.emacs} after loading the @code{tramp} and
+@code{recentf} packages:
+
+@lisp
+@group
+(remove-hook
+ 'tramp-cleanup-connection-hook
+ #'tramp-recentf-cleanup)
+@end group
+@group
+(remove-hook
+ 'tramp-cleanup-all-connections-hook
+ #'tramp-recentf-cleanup-all)
+@end group
+@end lisp
+
+
+@item
 I get a warning @samp{Tramp has been compiled with Emacs a.b, this is Emacs 
c.d}
 
 @value{tramp} comes with compatibility code for different Emacs



reply via email to

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