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: Sat, 16 Feb 2019 17:20:18 +0100 Message-ID: <874l93d7st.fsf@gmx.de> References: <874l96i21q.fsf@gmx.com> <87va1lcr9s.fsf@gmx.de> <87ef88r3sw.fsf@gmx.com> <878sygce0n.fsf@gmx.de> <8736on23an.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="237781"; 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 Sat Feb 16 17:20:40 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 1gv2hj-000zhX-8Y for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Feb 2019 17:20:39 +0100 Original-Received: from localhost ([127.0.0.1]:57725 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gv2hi-000780-9H for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Feb 2019 11:20:38 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gv2hU-00077v-Ah for help-gnu-emacs@gnu.org; Sat, 16 Feb 2019 11:20:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gv2hS-0002dv-Vi for help-gnu-emacs@gnu.org; Sat, 16 Feb 2019 11:20:24 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:60207) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gv2hS-0002dU-MR for help-gnu-emacs@gnu.org; Sat, 16 Feb 2019 11:20:22 -0500 Original-Received: from detlef.gmx.de ([212.86.59.221]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0ML7NR-1gvJob0fUP-000Hpu; Sat, 16 Feb 2019 17:20:20 +0100 In-Reply-To: <8736on23an.fsf@gmx.com> (Jordan Wilson's message of "Sat, 16 Feb 2019 14:53:04 +0000") X-Provags-ID: V03:K1:PpqyO26X8xgtmLMugg4U7ZLRHDPSVMKFf7nbmbuaAZLqnELsV+o iBljTUy579MLuQ38E1hjolznbHZPKsWZ5nQ85y9O0KoNFB7aVAb02tZA2XJH2eLAtg4Hodo ph1s8bFwhfQOPnwq1GDOdLoAcr6IA4NmeexUjXJJfv11h9eyk0cV1sC26i9upMNCU2D/GyF PDMkNRq4qhE436ii/pKvA== X-UI-Out-Filterresults: notjunk:1;V03:K0:7mzkqdCnIm8=:6hhONcol+LqEkncsDPhtgP E8kQ89iB2St3lI34fj++LW8FOY62GP6SpxcURs73nohQr3V85ch6wf7gMOBxeenC0Wx/GLACr oz/WM6BjCDZq0JHPGm00Va4jjY3AlAViyvfJ/pzsJqKS2lr1wIqXMOXvi0vF+Z5WLSY0gjShJ 2BGlt5n9blF+qcbffIa/9xSjuaAnqOFk5pwTKMhul1LEpTLJhwYc6Q73eHC9r0I9u5GYKJmXu zZS7d7x6Rm3Fx8jjYGZqJ8eoswqMpD1RqvNCdH4ea15HShz4tcF+CWvJlsDsER16P12G4sy3x bMqXFhu/v4CQaLMQUvSjLi5wzEkSFK5bqB1DhhoYaRrnSexOiznbLXGsuC3lP9/IYarp3qjXa 7KFZCTvmoxFof/VqjVCetPbMaXoB0ZkvBXKwS1Ot2WAf2x1WPS3rfJSRtdu3SveOs/o628JCT hUXKFTLtpp2WL+QUj1o6/G2WSc+OLgrKDw3ejPdq2D3seu70dF4BlQl12n9k5Xfj4UnLZ5uvI +c9Xk5mPpjcDnviKPMCVA8MPHN43xbV29lHqpY7y9Nt841avSUyhWymh3ZuX/s8Nu5Bqsj0wR +6uXxewugUE/QsabdfjO5d28zTjRpuNnSV7XN36EcyR7PU4g0uOuxdKdhvgTbpxNnt9TZnd9P Bt1A0miD+zh93PukBoojhMcD1RPJ8NHTOE4yjoAb/ANhHO/vEFU0McFnu7EQEw+P7eit6iIdX BF82tAMQPK9W3gQp0mJ43Jalojkskp0OKq9ZUdWst0Z7n7IeUyNw5GoisKBPIrquKVMeDxhb X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.19 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:119434 Archived-At: Jordan Wilson writes: > Hi Michael, Hi Jordan, > On 2019-02-16 (Sat) at 09:51 (+0100), Michael Albinus wrote: >> Have you tried sole "/plink:username@machine:"? > They work fine. No problems connecting to that machine with plink. Fine. >> Do you use packages which keep information over Emacs sessions, like >> recentf.el or desktop.el? > 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. (Maybe you write an Emacs bug report about, in order not to forget? I cannot promise that I will work on this just now.) > But even if that was somehow the cause, that doesn't > explain why this issue appears in "emacs -Q". Indeed, I also don't know what's up with "emacs -Q" here. To be investigated as well. > Regards, Best regards, Michael.