From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Vauban Subject: Re: [bug?] Tramp tries to open remote file links Date: Wed, 18 Jun 2014 14:18:46 +0200 Message-ID: <86y4wuz9zt.fsf@somewhere.org> References: <86egympou7.fsf@somewhere.org> <87tx7i1q4g.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Michael Albinus wrote: > Sebastien Vauban writes: >> 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][paper]] >> >> 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 I think we did not understand each other (or did we?) because that's the thing: I don't follow the link, I just open the file which contains such a link. See http://screencast.com/t/aXoxf9D1P. > (insert-file-contents "/me-oHC15RC7JGTNLxjTenLetw@public.gmane.org:papers/current.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][paper]] > > Alternatively, you could choose another file name. Best regards, Seb -- Sebastien Vauban