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: Mon, 26 Dec 2016 17:58:15 +0200 Message-ID: <831swuy960.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> <8337hdzdz2.fsf@gnu.org> <87vau8nt2b.fsf@gmx.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1482768025 26611 195.159.176.226 (26 Dec 2016 16:00:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Dec 2016 16:00:25 +0000 (UTC) Cc: 25183@debbugs.gnu.org, npostavs@users.sourceforge.net To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 26 17:00:18 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 1cLXh8-0005cr-MR for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Dec 2016 17:00:14 +0100 Original-Received: from localhost ([::1]:50779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cLXhB-0001jg-Ky for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Dec 2016 11:00:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cLXg6-0001AT-71 for bug-gnu-emacs@gnu.org; Mon, 26 Dec 2016 10:59:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cLXg0-0003TH-Tt for bug-gnu-emacs@gnu.org; Mon, 26 Dec 2016 10:59:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40442) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cLXg0-0003Sp-Qb for bug-gnu-emacs@gnu.org; Mon, 26 Dec 2016 10:59:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cLXfy-0004zU-41 for bug-gnu-emacs@gnu.org; Mon, 26 Dec 2016 10:59: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: Mon, 26 Dec 2016 15:59: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.148276793719171 (code B ref 25183); Mon, 26 Dec 2016 15:59:02 +0000 Original-Received: (at 25183) by debbugs.gnu.org; 26 Dec 2016 15:58:57 +0000 Original-Received: from localhost ([127.0.0.1]:55841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cLXfs-0004z9-R8 for submit@debbugs.gnu.org; Mon, 26 Dec 2016 10:58:57 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cLXfq-0004ys-SC for 25183@debbugs.gnu.org; Mon, 26 Dec 2016 10:58:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cLXfh-0003PE-Bv for 25183@debbugs.gnu.org; Mon, 26 Dec 2016 10:58:49 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cLXfR-0003LI-V0; Mon, 26 Dec 2016 10:58:29 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3199 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cLXfP-0001Ny-BU; Mon, 26 Dec 2016 10:58:27 -0500 In-reply-to: <87vau8nt2b.fsf@gmx.de> (message from Michael Albinus on Sun, 25 Dec 2016 12:31:40 +0100) 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:127454 Archived-At: > From: Michael Albinus > Cc: 25183@debbugs.gnu.org, npostavs@users.sourceforge.net > Date: Sun, 25 Dec 2016 12:31:40 +0100 > > (expand-file-name "/:~/path/./file") => "/:~/path/file" > > looks proper to me. That's proper on Unix, but on MS-Windows it will look like a non-absolute file name, which might break things. > Prepending "c:/" moves the file to another location > on the c: drive, perhaps. It should use CWD, not necessarily c:/. See below. > What does (expand-file-name "/:dir/path/./file") ? It produces "/:CURDIR/dir/path/file", where CURDIR is the current default directory, including the drive letter. My current way of thinking is to produce the same when "dir" is replaced with "~". Is that acceptable, in particular for Tramp? Thanks.