From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#31489: 25.3; Dired unable to open directory "/ssh:example.com" Date: Sun, 20 May 2018 20:30:06 +0200 Message-ID: <87muwu18pd.fsf@gmx.de> References: <1526643719.9043.13.camel@gmail.com> <87zi0xkmua.fsf@gmx.de> <1526681772.32534.6.camel@gmail.com> <87zi0vms8v.fsf@gmx.de> <1526839932.4200.13.camel@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1526840956 21817 195.159.176.226 (20 May 2018 18:29:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 20 May 2018 18:29:16 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 31489@debbugs.gnu.org To: Christoph Michelbach Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 20 20:29:12 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1fKT4v-0005Ta-Fv for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 May 2018 20:29:09 +0200 Original-Received: from localhost ([::1]:47326 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fKT70-0001f0-Tf for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 May 2018 14:31:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fKT6n-0001bb-6z for bug-gnu-emacs@gnu.org; Sun, 20 May 2018 14:31:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fKT6k-0002Kz-3h for bug-gnu-emacs@gnu.org; Sun, 20 May 2018 14:31:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34217) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fKT6j-0002Km-Vo for bug-gnu-emacs@gnu.org; Sun, 20 May 2018 14:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fKT6j-0003OY-Lk for bug-gnu-emacs@gnu.org; Sun, 20 May 2018 14:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 May 2018 18:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31489 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31489-submit@debbugs.gnu.org id=B31489.152684101612989 (code B ref 31489); Sun, 20 May 2018 18:31:01 +0000 Original-Received: (at 31489) by debbugs.gnu.org; 20 May 2018 18:30:16 +0000 Original-Received: from localhost ([127.0.0.1]:42114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fKT60-0003NR-Ia for submit@debbugs.gnu.org; Sun, 20 May 2018 14:30:16 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:35809) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fKT5y-0003ND-G6 for 31489@debbugs.gnu.org; Sun, 20 May 2018 14:30:14 -0400 Original-Received: from detlef.gmx.de ([212.91.249.45]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M3NEK-1gBCCm0MIC-00r3OL; Sun, 20 May 2018 20:30:08 +0200 In-Reply-To: <1526839932.4200.13.camel@gmail.com> (Christoph Michelbach's message of "Sun, 20 May 2018 20:12:12 +0200") X-Provags-ID: V03:K1:Rj4oHgK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3 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" Xref: news.gmane.org gmane.emacs.bugs:146326 Archived-At: Christoph Michelbach writes: Hi Christoph, > On Sat, 2018-05-19 at 20:10 +0200, Michael Albinus wrote: >> > After applying your patch, I can enter the directory with the SSH >> > resource name by hitting enter on it if and only if I start at "/:". >> Of course. Otherwise, you would try to open "/ssh:example.com:", which is >> a Tramp file name. > > Yes, but that's only because of how dired-find-file works (or the > functions called by it). The user would expect a dired buffer of the > external resource to be opened if tramp files were displayed in the > dired buffer for "/" and they actually hit return on a tramp file. But > they're not, so the user does not hit return on a tramp file. They hit > return on a directory which is part of their local (V)FS. When the > user hits return on some directory, they expect that directory to be > opened. In the current implementation of dired, this is not the case. I don't see how this could be avoided. Of course, dired could quote any directory name with "/:" when opening a directory with a file name dedicated to Tramp (or another file name handling library). But this would discard *any* file name handlers in this subdirectory, including something like uncrompressing files, as jka-compr does, or decrypting files, whis is performed by epa. > From the user's perspective, these are separate bugs: > > 1. The user is unable to access some directories by entering their paths. > 2. Hitting return on a directory does not load the directory. > > If the user has to enter a path different from the actual path to > avoid loading an external resource, that's perfectly acceptable. At > some point, what the user means by their input has to be clarified and > if they enter a location, disambiguating it is their job. But if the > user hits enter on a directory, they just want that directory to be > loaded. The function called upon hitting return should take care of > disambiguation. You haven't answered my question: Could you live w/o Tramp, and set tramp-mode to nil? Or do you want still use Tramp, and I shall extend Tramp with an "exclude file names" feature? Both variants would be a solution for this. Best regards, Michael.