From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Richard Subject: Re: [bug?] Tramp tries to open remote file links Date: Wed, 18 Jun 2014 11:44:31 +0200 Message-ID: <87a99asgao.fsf@geodiff-mac3.ulb.ac.be> References: <86egympou7.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxCP3-0006Ow-N4 for emacs-orgmode@gnu.org; Wed, 18 Jun 2014 05:43:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WxCOx-0005pW-7b for emacs-orgmode@gnu.org; Wed, 18 Jun 2014 05:43:37 -0400 Received: from plane.gmane.org ([80.91.229.3]:52739) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxCOx-0005nk-16 for emacs-orgmode@gnu.org; Wed, 18 Jun 2014 05:43:31 -0400 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WxCOr-0003Md-Ra for emacs-orgmode@gnu.org; Wed, 18 Jun 2014 11:43:25 +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, > > 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. It doesn't happen to me. I tried "emacs -Q path/to/test.org" and the file opened normally. Grepping, I see that tramp-maybe-open-connection is responsible for the tramp messages. so you could eval: (trace-function-background 'tramp-maybe-open-connection "*trace*" (lambda () (with-output-to-string (backtrace)))) then reproduce and look into the buffer *trace* to see what called tramp. Call M-x untrace-function RET TAB RET to remove the tracing. -- Nico.