From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Albinus Subject: Re: [bug?] Tramp tries to open remote file links Date: Wed, 18 Jun 2014 12:14:23 +0200 Message-ID: <87tx7i1q4g.fsf@gmx.de> References: <86egympou7.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxCtV-0000Fw-Bx for emacs-orgmode@gnu.org; Wed, 18 Jun 2014 06:15:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WxCtN-0000Sw-Ow for emacs-orgmode@gnu.org; Wed, 18 Jun 2014 06:15:05 -0400 Received: from plane.gmane.org ([80.91.229.3]:34435) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxCtN-0000Sk-Hx for emacs-orgmode@gnu.org; Wed, 18 Jun 2014 06:14:57 -0400 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WxCtE-0004OI-U0 for emacs-orgmode@gnu.org; Wed, 18 Jun 2014 12:14:48 +0200 In-Reply-To: <86egympou7.fsf@somewhere.org> (Sebastien Vauban's message of "Wed, 18 Jun 2014 11:08:16 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org Sebastien Vauban writes: > Hello, Hi Sebastien, > When I just open an Org file that has a link to a remote file, Tramp > tries to open it, leading to errors and timeouts when offline, at least. > > * References > > Some files of interest: > > [[file:/me-oHC15RC7JGTNLxjTenLetw@public.gmane.org:papers/current.pdf][pa= per]] > > Errors: > > =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > =E2=94=82 Tramp: Opening connection for > me-oHC15RC7JGTNLxjTenLetw@public.gmane.org using plink... > =E2=94=82 Tramp: Sending command `plink -l me -ssh -t somewhere.org " e= nv > 'TERM=3Ddumb' 'PROMPT_COMMAND=3D' 'PS1=3D#$ ' /bin/sh " && exit || exit' > =E2=94=82 Tramp: Waiting for prompts from remote shell... > =E2=94=82 Tramp failed to connect. If this happens repeatedly, try > =E2=94=82 `M-x tramp-cleanup-this-connection' > =E2=94=82 Tramp: Waiting for prompts from remote shell...failed > =E2=94=82 Tramp: Opening connection for > me-oHC15RC7JGTNLxjTenLetw@public.gmane.org using plink...failed > =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > > Is this supposed to be normal? Why does Tramp open the file? Because Tramp has been instructed so? I suppose, following the above link results in (insert-file-contents "/me-oHC15RC7JGTNLxjTenLetw@public.gmane.org:papers/c= urrent.pdf") This is remote file name syntax, and Tramp tries to do its job, using the default method "plink". You could avoid Tramp's reaction by a link like (untested) [[file:/:/me-oHC15RC7JGTNLxjTenLetw@public.gmane.org:papers/current.pdf][pa= per]] Alternatively, you could choose another file name. > Best regards, > Seb Best regards, Michael.