GNU bug report logs - #78791
30.1; Tramp reopening file with sudo after disconnect error message

Previous Next

Package: emacs;

Reported by: Alexis Bakatine <abakatine <at> proton.me>

Date: Sat, 14 Jun 2025 19:24:03 UTC

Severity: normal

Tags: notabug

Found in version 30.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Full log


Message #14 received at 78791 <at> debbugs.gnu.org (full text, mbox):

From: Alexis Bakatine <abakatine <at> proton.me>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "78791 <at> debbugs.gnu.org" <78791 <at> debbugs.gnu.org>
Subject: Re: bug#78791: 30.1;
 Tramp reopening file with sudo after disconnect error message
Date: Mon, 16 Jun 2025 07:25:52 +0000
> The notion '/ssh:foo <at> bar|sudo::' is called ad-hoc multi-hop for a reason
> in the Tramp manual. If you open it, you will see a dired buffer like
> "/sudo:root <at> bar:~/" - note, that the leading "/ssh:foo <at> bar:" part is not
> contained there. Tramp knows internally, that it should use this first
> hop when accessing "/sudo:root <at> bar:".
> 
> However, when you call tramp-cleanup-all-connections, this information
> is removed (by intention, in order to cleanup). When you reopen a file,
> "/sudo:root <at> bar:" cannot be connected again due to the missing first hop
> information.

It all makes sense better in my head now.

> I recommend you to set either tramp-show-ad-hoc-proxies or
> tramp-save-ad-hoc-proxies to t.

tramp-show-ad-hoc-proxies is working perfectly for what I described.

Thank you a lot for the explanation and solution Michael.
Feel free to close the non-bug and I wish you a great day.

Best regards,

Alexis




This bug report was last modified 2 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.