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, 12 Dec 2016 18:48:18 +0200 Message-ID: <83eg1dccvh.fsf@gnu.org> References: <87a8c1xhwh.fsf@gmx.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1481565506 30142 195.159.176.226 (12 Dec 2016 17:58:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 12 Dec 2016 17:58:26 +0000 (UTC) Cc: 25183@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 12 18:58:22 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 1cGUrl-0007IV-Fo for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Dec 2016 18:58:21 +0100 Original-Received: from localhost ([::1]:60358 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGUrp-0007ZM-Qb for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Dec 2016 12:58:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGTll-0008TJ-Fr for bug-gnu-emacs@gnu.org; Mon, 12 Dec 2016 11:48:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGTli-0001Tu-Ee for bug-gnu-emacs@gnu.org; Mon, 12 Dec 2016 11:48:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52279) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cGTli-0001Tq-BN for bug-gnu-emacs@gnu.org; Mon, 12 Dec 2016 11:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cGTli-0001se-5i for bug-gnu-emacs@gnu.org; Mon, 12 Dec 2016 11:48: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, 12 Dec 2016 16:48: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.14815612707193 (code B ref 25183); Mon, 12 Dec 2016 16:48:02 +0000 Original-Received: (at 25183) by debbugs.gnu.org; 12 Dec 2016 16:47:50 +0000 Original-Received: from localhost ([127.0.0.1]:39445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGTlW-0001rx-28 for submit@debbugs.gnu.org; Mon, 12 Dec 2016 11:47:50 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:32789) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGTlV-0001rZ-1H for 25183@debbugs.gnu.org; Mon, 12 Dec 2016 11:47:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGTlM-0001GJ-Mi for 25183@debbugs.gnu.org; Mon, 12 Dec 2016 11:47:43 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59641) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGTlM-0001G8-K9; Mon, 12 Dec 2016 11:47:40 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4703 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cGTlM-0005Qo-1F; Mon, 12 Dec 2016 11:47:40 -0500 In-reply-to: <87a8c1xhwh.fsf@gmx.de> (message from Michael Albinus on Mon, 12 Dec 2016 16:54:06 +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:126922 Archived-At: > From: Michael Albinus > Date: Mon, 12 Dec 2016 16:54:06 +0100 > > > Expanding a quoted file name works wrong on w32 systems. With Emacs > running on ‘gnu/linux’, there is > > (expand-file-name "/:~/path/./file") > => "/:~/path/file" > > This is correct. With Emacs running on ‘windows-nt’, there is > > (expand-file-name "/:~/path/./file") > => "/:c:/Users/lb01177/AppData/Roaming/path/file" Try (expand-file-name "/:c:/~/path/./file") expand-file-name needs to produce an absolute file name, and a file name that begins with a "~" isn't. IOW, I believe this is a feature. If you think it isn't, please explain why.