From unknown Thu Jun 19 16:21:21 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#9197 <9197@debbugs.gnu.org> To: bug#9197 <9197@debbugs.gnu.org> Subject: Status: 24.0.50; Visiting a remote file in one server, when default directory is in another one Reply-To: bug#9197 <9197@debbugs.gnu.org> Date: Thu, 19 Jun 2025 23:21:21 +0000 retitle 9197 24.0.50; Visiting a remote file in one server, when default di= rectory is in another one reassign 9197 emacs submitter 9197 Dani Moncayo severity 9197 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 29 04:56:24 2011 Received: (at submit) by debbugs.gnu.org; 29 Jul 2011 08:56:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qmirn-0000yN-My for submit@debbugs.gnu.org; Fri, 29 Jul 2011 04:56:24 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qmirk-0000yE-HM for submit@debbugs.gnu.org; Fri, 29 Jul 2011 04:56:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qmire-0003NO-J3 for submit@debbugs.gnu.org; Fri, 29 Jul 2011 04:56:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:34954) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qmire-0003NK-Ha for submit@debbugs.gnu.org; Fri, 29 Jul 2011 04:56:14 -0400 Received: from eggs.gnu.org ([140.186.70.92]:37068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qmird-00075M-OI for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2011 04:56:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qmirc-0003N6-KN for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2011 04:56:13 -0400 Received: from mail-qw0-f41.google.com ([209.85.216.41]:53661) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qmirc-0003Ms-9v for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2011 04:56:12 -0400 Received: by qwa26 with SMTP id 26so2336614qwa.0 for ; Fri, 29 Jul 2011 01:56:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=jzWWlo/d5eHwqaHaxgqpbsWqV2ru7PQ+8LGax3u5s7E=; b=JMIoJ/6XZONzDnPoChsRXhtnLcMcmlr+WGHc6MQlvY1zcGVZmNEvBp2gGURekxJbqK W2LEx3me25Ub8O7qt6Ydoqbr+QALfQFTXPUSxvP8a85EPW+dnxvHH/zfoeJ1Hesg5tt/ TeiZ+Pfl/oziJe2mVxM2HyNzfc8G9vv/1OYGI= MIME-Version: 1.0 Received: by 10.229.45.20 with SMTP id c20mr812134qcf.224.1311929771160; Fri, 29 Jul 2011 01:56:11 -0700 (PDT) Received: by 10.229.88.143 with HTTP; Fri, 29 Jul 2011 01:56:11 -0700 (PDT) Date: Fri, 29 Jul 2011 10:56:11 +0200 Message-ID: Subject: 24.0.50; Visiting a remote file in one server, when default directory is in another one From: Dani Moncayo To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.9 (----) 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". Note also a different but related problem: the highlighting of the minibuffer text is consistent with the current behavior (only the "/dir-a/" part is in gray color). Thus, this should be fixed too, to make it consistent with the right behavior. I.e., in this example, the part in gray should be "/user-a@host-a:/dir-a/". In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2011-07-25 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.5) --no-opt' -- Dani Moncayo From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 29 11:10:19 2011 Received: (at 9197) by debbugs.gnu.org; 29 Jul 2011 15:10:19 +0000 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 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 Received: (qmail invoked by alias); 29 Jul 2011 15:10:03 -0000 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 From: Michael Albinus To: Dani Moncayo Subject: Re: 24.0.50; Visiting a remote file in one server, when default directory is in another one References: Date: Fri, 29 Jul 2011 17:10:00 +0200 In-Reply-To: (Dani Moncayo's message of "Fri, 29 Jul 2011 10:56:11 +0200") Message-ID: <87tya5yvg7.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 9197 Cc: 9197@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 29 12:36:33 2011 Received: (at 9197) by debbugs.gnu.org; 29 Jul 2011 16:36:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qmq37-0004KW-Am for submit@debbugs.gnu.org; Fri, 29 Jul 2011 12:36:33 -0400 Received: from mail-yx0-f172.google.com ([209.85.213.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qmq34-0004KO-H1 for 9197@debbugs.gnu.org; Fri, 29 Jul 2011 12:36:31 -0400 Received: by yxp4 with SMTP id 4so2383760yxp.3 for <9197@debbugs.gnu.org>; Fri, 29 Jul 2011 09:36:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=8KR5uQWljsXWnuuZYpD6F6Bc0uQnAzbz49v0x2Ky8dA=; b=L8mk68DIv/LyHVM0fJYzxMAdj1czur8oeqxl9Nebb5LgOwCLBISlUC9mmkfo29clZI okwzfLU4U6IvQz3LcL5VePZlTvzfzQ2qCn+lBNDJ9yUxN2rxOA+nm8cigT+utIrYQZzS MpkhGXIpU2hGYfIlYa6KAhy0T2sP/nbwvdVR0= MIME-Version: 1.0 Received: by 10.91.66.11 with SMTP id t11mr1375951agk.189.1311957383972; Fri, 29 Jul 2011 09:36:23 -0700 (PDT) Received: by 10.90.87.1 with HTTP; Fri, 29 Jul 2011 09:36:23 -0700 (PDT) In-Reply-To: <87tya5yvg7.fsf@gmx.de> References: <87tya5yvg7.fsf@gmx.de> Date: Fri, 29 Jul 2011 18:36:23 +0200 Message-ID: Subject: Re: 24.0.50; Visiting a remote file in one server, when default directory is in another one From: Dani Moncayo To: Michael Albinus Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.7 (---) X-Debbugs-Envelope-To: 9197 Cc: 9197@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.7 (---) Hi Michael, On Fri, Jul 29, 2011 at 17:10, Michael Albinus wro= te: > > 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: > > =A0/user-a@host-a:/dir-a///user-b@host-b:/path-to-some-file > > See also (info "(tramp)Filename completion") I intuitively expected such behavior because I had read nodes [1] and [2], but not [3]. Maybe the explanation of "ignored chunks in find-file input" in node [1] should be generalized to take remote files into account, or at least add some link to node [3]. Anyway, I now understand the current behavior, and you can close this bug report. Thanks. Footnotes: [1] "(emacs)Minibuffer File" [2] "(emacs)Remote Files" [3] "(tramp)Filename completion" --=20 Dani Moncayo From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 30 11:54:51 2011 Received: (at 9197-done) by debbugs.gnu.org; 30 Jul 2011 15:54:52 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QnBsJ-0003MF-PD for submit@debbugs.gnu.org; Sat, 30 Jul 2011 11:54:51 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1QnBsH-0003M8-ST for 9197-done@debbugs.gnu.org; Sat, 30 Jul 2011 11:54:50 -0400 Received: (qmail invoked by alias); 30 Jul 2011 15:54:36 -0000 Received: from p57BB8C5E.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.140.94] by mail.gmx.net (mp054) with SMTP; 30 Jul 2011 17:54:36 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX195HuASS195YgaFzcsMlPIagKwk4jAqXvmpaMb55h Lqp1F0e8aCZC0q From: Michael Albinus To: Dani Moncayo Subject: Re: 24.0.50; Visiting a remote file in one server, when default directory is in another one References: <87tya5yvg7.fsf@gmx.de> Date: Sat, 30 Jul 2011 17:54:34 +0200 In-Reply-To: (Dani Moncayo's message of "Fri, 29 Jul 2011 18:36:23 +0200") Message-ID: <8739hn932d.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 9197-done Cc: 9197-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Dani Moncayo writes: > Hi Michael, Hi Dani, > Maybe the explanation of "ignored chunks in find-file input" in node > [1] should be generalized to take remote files into account, or at > least add some link to node [3]. I have added a link. > Anyway, I now understand the current behavior, and you can close this > bug report. Done. > Thanks. Thanks for reporting, and best regards, Michael. From unknown Thu Jun 19 16:21:21 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 28 Aug 2011 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator