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: Michael Albinus
Subject: bug#25183: 26.0.50; expanding quoted file name on w32
Date: Mon, 12 Dec 2016 17:54:33 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Michael Albinus <michael.albinus@gmx.de>
>> 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.

(file-name-absolute-p "/:~/path/./file")
=> t

Best regards, Michael.





reply via email to

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