From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Change Tramp syntax Date: Mon, 13 Mar 2017 19:30:54 +0200 Message-ID: <83wpbtaxtd.fsf@gnu.org> References: <20170309184457.29604.13048@vcs0.savannah.gnu.org> <20170309184458.08C9725FCF@vcs0.savannah.gnu.org> <87k27xfo3q.fsf@detlef> <87efy5fmml.fsf@detlef> <87mvcti5he.fsf_-_@detlef> <8760jfegz4.fsf@detlef> <83o9x7d1a6.fsf@gnu.org> <87lgsbd08r.fsf@detlef> <83innecyld.fsf@gnu.org> <87fuiimjph.fsf@detlef> <87y3w99jku.fsf@detlef> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1489426537 28710 195.159.176.226 (13 Mar 2017 17:35:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 13 Mar 2017 17:35:37 +0000 (UTC) Cc: monnier@IRO.UMontreal.CA, emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 13 18:35:34 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnTsb-00075G-Q0 for ged-emacs-devel@m.gmane.org; Mon, 13 Mar 2017 18:35:33 +0100 Original-Received: from localhost ([::1]:53556 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cnTsh-0003dK-U8 for ged-emacs-devel@m.gmane.org; Mon, 13 Mar 2017 13:35:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cnToP-0000lU-KM for emacs-devel@gnu.org; Mon, 13 Mar 2017 13:31:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cnToL-0001nk-Gk for emacs-devel@gnu.org; Mon, 13 Mar 2017 13:31:13 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50003) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cnToL-0001ne-DA; Mon, 13 Mar 2017 13:31:09 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3639 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cnToK-0001SB-LY; Mon, 13 Mar 2017 13:31:09 -0400 In-reply-to: <87y3w99jku.fsf@detlef> (message from Michael Albinus on Mon, 13 Mar 2017 18:23:45 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:212996 Archived-At: > From: Michael Albinus > Cc: monnier@IRO.UMontreal.CA, emacs-devel@gnu.org > Date: Mon, 13 Mar 2017 18:23:45 +0100 > > >>> "~/da" shall not invoke Tramp. But it does, indeed. If I call "emacs -Q" > >>> and eval "M-x debug-on-entry RET load", then Tramp is already loaded > >>> after typing "~/d". The reason is > >>> > >>> substitute-in-file-name("/d") > >>> rfn-eshadow-update-overlay() > >>> read-from-minibuffer("Find file: " "~/" (keymap (keymap (32)) > >>> keymap (10 . m > >> > >> Can we get rid of this somehow? It used to be possible to avoid > >> loading Tramp when specifying local file names. > > > > I'm just working on changing Tramp to require always a method. After > > that, I'll check whether we could optimize the autoloads. > > Pls check; according to my tests, Tramp is loaded much later now. What I see here is that it's loaded whenever file-name completion is invoked by pressing TAB or RET. Before that, it doesn't get loaded. That's good progress, thanks. > A local file name should not cause Tramp being loaded except in case of > file name completion, when Tramp expects a file name "/foo" could be > extended to a remote file name. I have a directory ~/data. Is it expected that typing "C-x C-f ~/dat TAB" should load Tramp? If that's expected, why is Tramp interested in completions of such file names? Thanks.