Subject: bug#65039: [PATCH] Add bookmark handler for shell-mode

From: Michael Albinus <[email-masked]>
Date: Fri, 14 Feb 2025 18:20:43 +0100

Ship Mints <[email-masked]> writes:

Hi,

>     My idea is rather to extend expand-file-name. If
>     tramp-show-ad-hoc-proxies is non-nil, it should return the whole
>     ad-hoc
>     multi-hop remote file name. Something like this.
>
>     (I thought it is simple, but it looks a little bit more complex.)
>
> The original multi-hop file name is gone by then if
> tramp-show-ad-hoc-proxies is nil globally. Let-binding
> tramp-show-ad-hoc-proxies to t in a function context still has to have
> a way to get the original remote file spec.

The multi-hop file name can still be reconstructed from
tramp-default-proxies-alist. See string property tramp-ad-hoc.

Best regards, Michael.