Subject: bug#25183: 26.0.50; expanding quoted file name on w32

From: Eli Zaretskii <[email-masked]>
Date: Mon, 26 Dec 2016 17:58:15 +0200

> From: Michael Albinus <[email-masked]>
> Cc: [email-masked],  [email-masked]
> 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.