From: Michael Albinus <michael.albinus@gmx.de>
To: Jordan Wilson <jordan.t.wilson@gmx.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Issues with multi-hop in TRAMP
Date: Mon, 25 Feb 2019 12:52:27 +0100 [thread overview]
Message-ID: <87y364nkzo.fsf@gmx.de> (raw)
In-Reply-To: <874l93d7st.fsf@gmx.de> (Michael Albinus's message of "Sat, 16 Feb 2019 17:20:18 +0100")
Michael Albinus <michael.albinus@gmx.de> writes:
> Hi Jordan,
Hi Jordan,
>> I use recentf.el. It can see in `recentf-open-files' files retrieved
>> using that multi-hop are labelled like
>> "/sshx:username@machine2:/home/jordan/hello.txt"
>
> Well, that's the problem. Multi-hop remote files, as you use them, are
> called "ad-hoc". The reason is that this syntax is intended for the
> moment, and not suited to survive Emacs sessions. Tramp reduces the file
> name "/method1:host1|method2:host2:" to "/method2:host2", just for
> convenience. The needed hop for host2 is kept internally during the
> Emacs session.
>
> When you open a new Emacs session, and recentf reads its initial file
> with the shortened file name, this information is lost.
>
> So you shall either declare multi-hop by means of
> `tramp-default-proxies-alist' (see the Tramp manual, node "Multi-hops"),
> or you shall set `tramp-save-ad-hoc-proxies' to t (see the Tramp manual,
> node "Ad-hoc multi-hops"), which stores that information persistently.
>
> Anyway, it is an error in recentf to store such shortened remote file
> name, missing the ad-hoc multi-hop information. I will check, whether
> this could be fixed.
Well, I've extended `tramp-cleanup-all-connections' such a way, that it
removes all remote files from recentf lists. This should help in such
cases, at least to get rid of reloading such files again and again.
Available in the Emacs master branch.
Best regards, Michael.
prev parent reply other threads:[~2019-02-25 11:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-14 19:48 Issues with multi-hop in TRAMP Jordan Wilson
2019-02-15 9:52 ` Michael Albinus
2019-02-16 0:10 ` Jordan Wilson
2019-02-16 8:51 ` Michael Albinus
2019-02-16 14:53 ` Jordan Wilson
2019-02-16 16:20 ` Michael Albinus
2019-02-25 11:52 ` Michael Albinus [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y364nkzo.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=help-gnu-emacs@gnu.org \
--cc=jordan.t.wilson@gmx.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.