From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Issues with multi-hop in TRAMP Date: Mon, 25 Feb 2019 12:52:27 +0100 Message-ID: <87y364nkzo.fsf@gmx.de> References: <874l96i21q.fsf@gmx.com> <87va1lcr9s.fsf@gmx.de> <87ef88r3sw.fsf@gmx.com> <878sygce0n.fsf@gmx.de> <8736on23an.fsf@gmx.com> <874l93d7st.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="213089"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Jordan Wilson Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 25 12:52:49 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gyEoS-000tKT-RU for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Feb 2019 12:52:48 +0100 Original-Received: from localhost ([127.0.0.1]:35713 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyEoR-0005Sj-Re for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Feb 2019 06:52:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyEoD-0005SX-Oy for help-gnu-emacs@gnu.org; Mon, 25 Feb 2019 06:52:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gyEoC-0002W5-VO for help-gnu-emacs@gnu.org; Mon, 25 Feb 2019 06:52:33 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:39349) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gyEoC-0002UN-JD for help-gnu-emacs@gnu.org; Mon, 25 Feb 2019 06:52:32 -0500 Original-Received: from detlef.gmx.de ([178.20.95.106]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lp3Qu-1hTyaP152C-00excM; Mon, 25 Feb 2019 12:52:29 +0100 In-Reply-To: <874l93d7st.fsf@gmx.de> (Michael Albinus's message of "Sat, 16 Feb 2019 17:20:18 +0100") X-Provags-ID: V03:K1:L4tFPvjAY9HYPPew7tCXZYVEG6neJKegJZ2JNAKW5lM0A6PtuhH uaDpwBSXQbQoPbYvfQaAYOwacQ6NqadKFBG4h79HW6W531duEfgJQ6Hb9PmrmAE7avJ5h2O 9UGkQC+OmM7/lSOqNOZrIRbj+AiMWfuWMEQCyzQ6wJFozTlb/PBJ3FcPUGsSzyTy57YF5qw eq2xvUIFaD62c0OJks9kQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:oVBiWdLQOfM=:TFORic7ZMkkx6Zse0EKpMR 9HtASqHIGGOFuVXRRXCa/jeYw3XsE9s+YdLSl5fHA2mN0QJLGauIEs6XcZRrsPrH3cRmY/jZk Zm+hLmbUHzwZRVJB0nCuxQTcppvnsbI+wtDiZWXBkRDDAa1Mvszq1lMICjZPXy4hIbFG2M/2p 9nQzclRlbnq6uVhoAom4wq3UOeiOvNUc8RTH++spiV2T8KV68QhIwa5wN7EFItG+XyYnZ6wnu fkZtV+xT9LuIP+u73ivWRSiv8vleqiLHNEdJ6zjtPoP6aPwP0pUVEMrFGOqvUbCPSovQxdz1o zTAf9qMm6FHZx2IWxDqAhperC3AQu4yLfpC7T5HGtphE2NUf3+cqxvfMkgw4ABeKC4gkJFVdR f7LzLZm+KKW/aNKSgxT+mUdn9HcCPZOaTK5xvIsGT/LC3Fz4V1Xg+unewiq/wVyB89IGcBVmp RZFHWfUWHgwaIW0ZiwDj95gCl0R792gwvWDKURx5muJMBI4Tyw4O+c7KGPncPCDc6hckOX+a3 DdJF2lKzO02B0ztKh7T8+HRqsO+hZqYJO+wd2STb0BE0oznOveZyrI8lv4HWY7t5JfIKkTB5T dj1MN7S0tGK4Ut/3alI/SVb8evpcoAVbGSFMTDoR0iEsrl/rEvRV7JhV+r96cPXZEPm2TKIL+ 81oZ7NkH3btVbyiPNK1aJ8LU80N+s4ed6sAdrBUaRdpp03lNrzZ/EovJ4pjG7FF1IJfezQixk f6ITU7SulXTG+rc5qERxx6B4z5DR5ifdDCNS5Hb/tAmLxaM8skq3D0FfBPJQ/Mj9IVam1ZpD X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.22 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:119526 Archived-At: Michael Albinus 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.