bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Eli Zaretskii
Subject: bug#25183: 26.0.50; expanding quoted file name on w32
Date: Mon, 26 Dec 2016 17:58:15 +0200

> From: Michael Albinus <address@hidden>
> Cc: address@hidden,  address@hidden
> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]