emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#31489: closed (25.3; Dired unable to open director


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#31489: closed (25.3; Dired unable to open directory "/ssh:example.com")
Date: Mon, 04 Jun 2018 16:38:02 +0000

Your message dated Mon, 04 Jun 2018 18:37:35 +0200
with message-id <address@hidden>
and subject line Re: bug#31489: 25.3; Dired unable to open directory 
"/ssh:example.com"
has caused the debbugs.gnu.org bug report #31489,
regarding 25.3; Dired unable to open directory "/ssh:example.com"
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
31489: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=31489
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 25.3; Dired unable to open directory "/ssh:example.com" Date: Fri, 18 May 2018 13:41:59 +0200
If you can't reproduce the problem with the version of Emacs you're running
right away, please read till the end of this email.


When a file's path conflicts with how an external resource is addressed, you can
tell Emacs to open the local path by preceding it with "/:". If you created a
file with

sudo touch "/ssh:example.com/file"

, you could access it via:

C-x C-f /:/ssh:example.com/file RET

However, if you leave "file" out, you don't get to see a dired buffer after
hitting return. Instead, the current windows are retained and the mini buffer
reads:

Host name must not match method "ssh"

The *Messages* buffer says:

tramp-file-name-handler: Host name must not match method "ssh"

You also cannot first navigate to "/" and then enter the directory by moving
point to it and hitting return. The same problem accompanied by the same error
message occurs.


If you use the development version of Emacs, the problem only occurs if the
directory's name ends in a colon. So if you're using the development version,
run

sudo mkdir "/ssh:exaple.com:"

instead to create a folder you can't access via dired. Again, the problem occurs
both when entering its path preceded by "/:" and when hitting return on the
dired buffer of "/".

I used the latest version on the master branch of the mirror on GitHub
(60ff8101449eea3a5ca4961299501efd83d011bd) to confirm that the problem still
exists.



--- End Message ---
--- Begin Message --- Subject: Re: bug#31489: 25.3; Dired unable to open directory "/ssh:example.com" Date: Mon, 04 Jun 2018 18:37:35 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
Version: 27.1

Michael Albinus <address@hidden> writes:

Hi Christoph,

> Finally, I've pushed a patch to Emacs' master branch which should solve
> your problem. Add the following line to your .emacs:
>
> (setq tramp-ignored-file-name-regexp "\\`/ssh:example\\.com:")
>
> That's it. Tramp's documentation tells something about.

Additionally, I have enhanced `file-name-non-special' to work proper for
files in a directory like "/:/ssh:example.com:/". This is independent
from the Tramp configuration shown above.

If you have a chance to build Emacs from git, you could test it.

I'm closing the bug.

Best regards, Michael.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]