From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25183: 26.0.50; expanding quoted file name on w32 Date: Sat, 24 Dec 2016 14:52:17 +0200 Message-ID: <8337hdzdz2.fsf@gnu.org> References: <87a8c1xhwh.fsf@gmx.de> <83eg1dccvh.fsf@gnu.org> <8760mpxf3q.fsf@gmx.de> <87mvg0d33x.fsf@users.sourceforge.net> <877f745izp.fsf@gmx.de> <83eg1bbxp5.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1482583998 4571 195.159.176.226 (24 Dec 2016 12:53:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 24 Dec 2016 12:53:18 +0000 (UTC) Cc: 25183@debbugs.gnu.org, npostavs@users.sourceforge.net To: michael.albinus@gmx.de Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 24 13:53:12 2016 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 1cKlox-00088x-4v for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Dec 2016 13:53:07 +0100 Original-Received: from localhost ([::1]:43297 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cKlp1-0006GW-Rj for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Dec 2016 07:53:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cKlot-0006GF-5u for bug-gnu-emacs@gnu.org; Sat, 24 Dec 2016 07:53:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cKlos-0002hA-Cw for bug-gnu-emacs@gnu.org; Sat, 24 Dec 2016 07:53:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37901) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cKlos-0002h4-9T for bug-gnu-emacs@gnu.org; Sat, 24 Dec 2016 07:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cKlos-0002yu-1s for bug-gnu-emacs@gnu.org; Sat, 24 Dec 2016 07:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Dec 2016 12:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25183 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25183-submit@debbugs.gnu.org id=B25183.148258397911451 (code B ref 25183); Sat, 24 Dec 2016 12:53:02 +0000 Original-Received: (at 25183) by debbugs.gnu.org; 24 Dec 2016 12:52:59 +0000 Original-Received: from localhost ([127.0.0.1]:53300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cKlop-0002yd-AW for submit@debbugs.gnu.org; Sat, 24 Dec 2016 07:52:59 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cKlon-0002yP-Tu for 25183@debbugs.gnu.org; Sat, 24 Dec 2016 07:52:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cKlof-0002eb-IA for 25183@debbugs.gnu.org; Sat, 24 Dec 2016 07:52:52 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cKloS-0002af-8C; Sat, 24 Dec 2016 07:52:36 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3748 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cKloR-0006by-FK; Sat, 24 Dec 2016 07:52:35 -0500 In-reply-to: <83eg1bbxp5.fsf@gnu.org> (message from Eli Zaretskii on Tue, 13 Dec 2016 18:28:22 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 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:127389 Archived-At: > Date: Tue, 13 Dec 2016 18:28:22 +0200 > From: Eli Zaretskii > Cc: 25183@debbugs.gnu.org, npostavs@users.sourceforge.net > > > From: Michael Albinus > > Date: Tue, 13 Dec 2016 09:30:18 +0100 > > Cc: 25183@debbugs.gnu.org > > > > It is not an annoyance coming from a user's bug report; I've stumbled > > over this when running tramp-tests.el under many different environments. > > > > (expand-file-name "/:/~/path/./file") => "/:c:/~/path/file" > > > > looks better, althoug the volume drive would still disturb me. But > > that's my personal preference, the result might be OK on MS Windows. > > > > Eli? > > I will look into this in a couple of days. Sorry for the delay. I looked into this, and I indeed think there might be a problem here. I agree that "~" should not be expanded for file names escaped with "/:", but before I propose a solution, I think we should decide whether the "/:" escape should cause the rest be expanded "as usual", i.e. produce an absolute file name after "/:" for local file names, minus the "~" expansion. Currently, Unix file names are not expanded because '/' as the first character makes them look as absolute file names. MS-Windows specific code, OTOH, looks under the hood, and does expand the rest. IOW, the question is whether on Windows we should have this: (expand-file-name "/:~/path/./file") => "/:c:/~/path/file" or this: (expand-file-name "/:~/path/./file") => "/:~/path/file" If we want the former, then maybe the Unix code should be fixed to produce "/:/~/path/file" in that case. Thoughts?