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

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

bug#9197: 24.0.50; Visiting a remote file in one server, when default di


From: Michael Albinus
Subject: bug#9197: 24.0.50; Visiting a remote file in one server, when default directory is in another one
Date: Fri, 29 Jul 2011 17:10:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Dani Moncayo <address@hidden> writes:

> Recipe from "emacs -Q":
>
> 1. Change the current buffer's default directory to some path in
> "host-a": M-x cd <RET> /address@hidden:/dir-a <RET>.
> 2. Try to visit some (existing) file in host-b: C-x C-f
> /address@hidden:/path-to-some-file <RET>.
>
> Note that, in step #2, just before hitting <RET>, the contents of the
> minibuffer are:
>    /address@hidden:/dir-a//address@hidden:/path-to-some-file
>
> Expected behavior: the file "/path-to-some-file" (from "host-b") is visited.
>
> Observed behavior: an error occurs, because Emacs tried to visit a
> (nonexistent) file in "host-a", whose path is
> "/address@hidden:/path-to-some-file".

This is the intended behaviour. When your buffer's default directory is
remote and you want to open a local file or a file on another remote
server, you need three slashes, like this:

  /address@hidden:/dir-a///address@hidden:/path-to-some-file

See also (info "(tramp)Filename completion")

Best regards, Michael.





reply via email to

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