From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#23006: 25.0.92; Loading Tramp breaks pcomplete in eshell-mode Date: Sat, 19 Mar 2016 16:28:21 +0100 Message-ID: <87io0i32sq.fsf@gmx.de> References: <871t7d4ion.fsf@gmx.de> <87oaagi128.fsf@gmx.de> <877fh0hovs.fsf@gmx.de> <756f60a7-bdf9-a806-b9d6-dbf17f0ebaab@yandex.ru> <87y49gg9sm.fsf@gmx.de> <845ef936-dec1-eac9-db2a-f2bb25f3a830@yandex.ru> <87egb8faxv.fsf@gmx.de> <8760wj3eks.fsf@gmx.de> <8760wj4jvp.fsf@gmx.de> <871t7650th.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1458401361 3619 80.91.229.3 (19 Mar 2016 15:29:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Mar 2016 15:29:21 +0000 (UTC) Cc: 23006@debbugs.gnu.org, Dmitry Gutov To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 19 16:29:11 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ahIoP-0004tU-PJ for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Mar 2016 16:29:10 +0100 Original-Received: from localhost ([::1]:49225 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahIoO-0002ZV-QQ for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Mar 2016 11:29:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40971) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahIoL-0002ZO-7F for bug-gnu-emacs@gnu.org; Sat, 19 Mar 2016 11:29:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahIoI-00012k-HL for bug-gnu-emacs@gnu.org; Sat, 19 Mar 2016 11:29:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56699) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahIoI-00012g-Dz for bug-gnu-emacs@gnu.org; Sat, 19 Mar 2016 11:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ahIoI-0006Rm-9X for bug-gnu-emacs@gnu.org; Sat, 19 Mar 2016 11:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Mar 2016 15:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23006 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23006-submit@debbugs.gnu.org id=B23006.145840131424749 (code B ref 23006); Sat, 19 Mar 2016 15:29:02 +0000 Original-Received: (at 23006) by debbugs.gnu.org; 19 Mar 2016 15:28:34 +0000 Original-Received: from localhost ([127.0.0.1]:53826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahInq-0006R6-D3 for submit@debbugs.gnu.org; Sat, 19 Mar 2016 11:28:34 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:63974) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahIno-0006Qt-BF for 23006@debbugs.gnu.org; Sat, 19 Mar 2016 11:28:33 -0400 Original-Received: from detlef.gmx.de ([79.195.13.135]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0LqzIJ-1aCu3g1tJb-00eYwa; Sat, 19 Mar 2016 16:28:23 +0100 In-Reply-To: (Stefan Monnier's message of "Sat, 19 Mar 2016 08:35:06 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-Provags-ID: V03:K0:koP1iDYUInRsgvY15eO8vfQNDkwGqkfrzQv8EAygoBy6hc5qHYM lCrySE0uYPFly2I3ziM2pcd/J1lIG0PPSXijmFVjWddDJ9N6N9S+1mOD/wJvBld70jBJBae FQqiAipTQc46vaSG2p3/Sm9gHyfJGruvxgNEYdchZ5QQBAScHpCBxU/KSGWZddtSP16Jxqs mQbu5W7JAhtaKRg6wnATQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:4wFKf5jpElM=:S6Mtao97Z4+ZV6hWa/j58r jux9WZGlOLHjzEO0YQZmDuE78E7/cdGEad3iFA9MVgGCl78ruxshiHD8n2HZZKqeJE1fdlyZh DhSi357d8euIhJA3CCEUNlkjvIwNuml8D+VM6GTlD5RaEjuEGRcTLrAOEHC4VeXqhHyEcT3Cb pN+jga1GsejTG58H2UAI0SyVpf2JqyOYm8+NRCDeo9WEOxY5l72B7e0u3997MBNwMuz7pNHIK hYGPfQOVwHq+p+2f9i+957iNpgokMygdI1B+lPQdn+JuJWacX8r1bjC+wzgg4e4hYUH4hy1Mj ZxrtgGrKPfk0VOFpl6QCI+jfSQ+5RYENi6cs4T1yQClf4ZO5/H7IKx4qyg5U5VFIkDeP1YA9s fDS9tJf7rX5L5Ll2h9tNTd3xfWtnwr6LLOj+g6CekNJy4AfpNTZQrgbfU6W6FsRDK1J+30fjw M1H2XOMQWhC5WtSA7z4qYmZJOjfNkxkkeIflMbrLf93eC8raOgchn2uglPfSFHFBrfzgVAvDp /skwPdNTXTLEqcFRZy4TQJznQ/TTIEsWfJ3U1SRWoaGY0VIeksglEgMX+v4bl1gJPPg23GHmO V6rHwXYFvKvhJ0M1uHyI7mAtGILgfNQV3SoKfHaP8yvInsCaeI5qag5GKXIkeEpCmF/+NOgdx XQXaDm0givXHgp4vxXCmw6LC3eYjBeKUvuKwS6znPFlXoTIvvzCKkHk1g47SpV1mlcTKjGI0g GJdnMjYkxIAgFTuPP+bk4AewZ/bkEMpxvr5+DZVhnAbrVy+Yo5rUQmMizUC/0ZVw6Wo3bc/H X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:115090 Archived-At: Stefan Monnier writes: >> non-essential comes in play only when hostname completion hasn't been >> finished. > > Could you expand on this? > > Do you mean when completing things like "/ssh:toto" ? > In that case I agree that Tramp shouldn't open a connection, but I think > this should be regardless of non-essential. I'm not speaking about opening a connection. This is controlled independent of non-essential settings. I'm speaking about this error, that Tramp reports "/adb:" not being a valid hostname. This does not happen if non-essential is bound to non-nil, indicating to Tramp that the given filename is not complete yet. > But do you also mean that completing "/ssh:host:tmp/ema" will open a new > connection regardless of non-essential? If so, as mentioned I think > that would be a mistake. I don't believe it is a mistake. The presence of a slash indicates to Tramp, that the (Emacs) user has provided everything what's needed to say about method, (remote) user, and hostname to Tramp. So it is safe to open the connection. Otherwise, you would never be able to complete local pathnames for remote hosts, if the connection hasn't been established yet. Inconvenient. It is my daily scenario to type C-x C-f / / / s s h : h o s / u s The leading slashes are needed because I work usually on other remote machines in parallel. It's my typing style to start with three consecutive slashes :-) The first completes to "/ssh:host:" The second completes to "/ssh:host:/usr". And so on. I also perform very often "ediff" over machine boundaries. Usually, the first filename is on the machine I'm working on, and the second filename on another machine on a similar location. Once I have started ediff, I want to complete the (slightliy) different pathname of the second file while being asked from ediff for that filename. If I would need to open a connection to the second host in advance, this workflow would be impossible. >> This is how Tramp behaves for years. I haven't heard complaints about >> (except the cases non-essential isn't let-bound, like the one we're >> discussing here). > > Sounds like we agree, then: this should not be affected by non-essential. Yes, here we agree. Opening a new connection is not related to non-essential. > Stefan Best regards, Michael.