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: Sat, 19 May 2018 20:10:08 +0200 Message-ID: <87zi0vms8v.fsf@gmx.de> References: <1526643719.9043.13.camel@gmail.com> <87zi0xkmua.fsf@gmx.de> <1526681772.32534.6.camel@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1526753390 13682 195.159.176.226 (19 May 2018 18:09:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 19 May 2018 18:09:50 +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 Sat May 19 20:09:46 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 1fK6IX-0003Lc-0W for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 May 2018 20:09:41 +0200 Original-Received: from localhost ([::1]:43947 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fK6Ke-0001ml-3D for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 May 2018 14:11:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fK6KG-0001kr-UU for bug-gnu-emacs@gnu.org; Sat, 19 May 2018 14:11:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fK6Jq-00081Q-EH for bug-gnu-emacs@gnu.org; Sat, 19 May 2018 14:11:28 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33340) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fK6Jq-00081B-5l for bug-gnu-emacs@gnu.org; Sat, 19 May 2018 14:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fK6Jq-0005mt-00 for bug-gnu-emacs@gnu.org; Sat, 19 May 2018 14:11: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 May 2018 18:11: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.152675341922198 (code B ref 31489); Sat, 19 May 2018 18:11:01 +0000 Original-Received: (at 31489) by debbugs.gnu.org; 19 May 2018 18:10:19 +0000 Original-Received: from localhost ([127.0.0.1]:41237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fK6J8-0005lw-Ms for submit@debbugs.gnu.org; Sat, 19 May 2018 14:10:18 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:55703) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fK6J6-0005lk-JJ for 31489@debbugs.gnu.org; Sat, 19 May 2018 14:10:17 -0400 Original-Received: from detlef.gmx.de ([212.91.249.45]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Mg42v-1fhQcW3G0j-00NSH2; Sat, 19 May 2018 20:10:09 +0200 In-Reply-To: <1526681772.32534.6.camel@gmail.com> (Christoph Michelbach's message of "Sat, 19 May 2018 00:16:12 +0200") X-Provags-ID: V03:K1:nr2ByqkoNqP+26v+/cLIkFiGubRAhg773frBpam/I4Bo8Vdq9P2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 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:146296 Archived-At: Christoph Michelbach writes: Hi Christoph, > 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. > If this didn't work thus far, it's probably a bad idea to force people > to start at "/:" instead of "/". Meanwhile, I don't believe it is the way to go. If you enter the directory "/:/ssh:example.com:/", and want to access any file there, none of the file name handlers would work due to the quoting with "/:". Even uncompressing a file on the fly doesn't work, like /:/ssh:example.com:/file.gz". This is not what we want. We want just to hinder Tramp taking care of "/ssh:example.com:". If you don't use Tramp at all, set `tramp-mode' to nil in your .emacs. Everything shall work then as expected. This shall work also with older Emacsen, like 25.3. If you plan to still use Tramp, tell me so. I will add a variable then, where you could give a regexp for file names to be ignored by Tramp, like "\\`/ssh:example\\.com:". I will use bug#31489 to continue the work on the bug it has uncovered: If there is a magic function with two file name arguments, and the first argument is quoted with "/:", then *both* arguments are handled like they were quoted. Something like (copy-file "/:/ssh:example.com/file" "/sudo::/etc/file") won't work anymore. Best regards, Michael.