On Mon, 25 Jan 2021 at 11:03, Michael Albinus <[email protected]>
wrote:
IIRC, in case of "emacs -Q", Tramp does not call auth-source-search. I
made this in order to get better error reports, w/o the hazzle to
instruct people how to configure auth-sources well. Try the following
after loading tramp.el:
(setq tramp-cache-read-persistent-data t)
This enables also using cached properties, but this shouldn't hurt in
your case.
Ah, bingo! I had no idea, and was starting to think I was mad. :-)
Anyway, then we have an `emacs -Q' reproduction recipe:
#+begin_src emacs-lisp
(load-library "tramp")
(setq tramp-cache-read-persistent-data t)
(setq auth-source-save-behavior nil)
(setq auth-sources
'(default
"secrets:session"
"secrets:Login"
"~/.authinfo.gpg"))
#+end_src
Now find file "/sudo::/tmp/test.txt", enter password, and meet the
infamous "label prompt".
Best regards,
Gustavo.