From df7bb79f3862e64739147fc1fc3c3e9af268d046 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Sun, 25 Jul 2021 16:54:00 +0200 Subject: [PATCH] Add instructions for Tramp bug reports * doc/misc/tramp.texi (Bug Reports): Describe how to use password cache with "emacs -Q". --- doc/misc/tramp.texi | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index 088352e8a8a..17302ddbf24 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi @@ -4255,7 +4255,16 @@ test, @ref{Cleanup remote connections}. Alternatively, and often better for analysis, reproduce the problem in a clean Emacs session started with @command{emacs -Q}. Then, @value{tramp} does not load the persistency file (@pxref{Connection caching}), and it does not use -passwords from @file{auth-source.el} (@pxref{Password handling}). +passwords from @file{auth-source.el} (@pxref{Password handling}). If +you really need a password cache, for example for the +@option{sudoedit} method, call + +@smallexample +emacs -Q -l tramp \ + --eval '(setq tramp-cache-read-persistent-data t)' \ + --eval '(tramp-cleanup-all-connections)' +@end smallexample + When including @value{tramp}'s messages in the bug report, increase the verbosity level to 6 (@pxref{Traces and Profiles, Traces}) in the -- 2.39.2