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#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 Message-ID: <87tya5yvg7.fsf@gmx.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1311952266 27109 80.91.229.12 (29 Jul 2011 15:11:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 29 Jul 2011 15:11:06 +0000 (UTC) Cc: 9197@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 29 17:11:02 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QmoiL-0004bY-Rg for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Jul 2011 17:11:01 +0200 Original-Received: from localhost ([::1]:43498 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmoiL-0000bW-BP for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Jul 2011 11:11:01 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:53738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmoiI-0000bM-H2 for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2011 11:10:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QmoiH-0004VW-9K for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2011 11:10:58 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmoiH-0004VQ-7a for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2011 11:10:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QmoiM-0002Tc-Ca; Fri, 29 Jul 2011 11:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Jul 2011 15:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9197 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9197-submit@debbugs.gnu.org id=B9197.13119522199469 (code B ref 9197); Fri, 29 Jul 2011 15:11:02 +0000 Original-Received: (at 9197) by debbugs.gnu.org; 29 Jul 2011 15:10:19 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qmohe-0002Sg-OP for submit@debbugs.gnu.org; Fri, 29 Jul 2011 11:10:19 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1QmohW-0002SS-SN for 9197@debbugs.gnu.org; Fri, 29 Jul 2011 11:10:12 -0400 Original-Received: (qmail invoked by alias); 29 Jul 2011 15:10:03 -0000 Original-Received: from p57BB9866.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.152.102] by mail.gmx.net (mp046) with SMTP; 29 Jul 2011 17:10:03 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19RnQYT5mFR/WBpotMo5DShvgJL4hN48DqBcp5NPo tX3SV19ZKArMfQ In-Reply-To: (Dani Moncayo's message of "Fri, 29 Jul 2011 10:56:11 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 29 Jul 2011 11:11:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.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:49696 Archived-At: Dani Moncayo writes: > Recipe from "emacs -Q": > > 1. Change the current buffer's default directory to some path in > "host-a": M-x cd /user-a@host-a:/dir-a . > 2. Try to visit some (existing) file in host-b: C-x C-f > /user-b@host-b:/path-to-some-file . > > Note that, in step #2, just before hitting , the contents of the > minibuffer are: > /user-a@host-a:/dir-a//user-b@host-b:/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 > "/user-b@host-b:/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: /user-a@host-a:/dir-a///user-b@host-b:/path-to-some-file See also (info "(tramp)Filename completion") Best regards, Michael.