[Top][All Lists]

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

bug#36502: Fwd: bug#36502: 27.0.50; infinite loop in file-name-case-inse

From: Ken Brown
Subject: bug#36502: Fwd: bug#36502: 27.0.50; infinite loop in file-name-case-insensitive-p
Date: Fri, 12 Jul 2019 20:18:11 +0000
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2

On 7/12/2019 2:41 AM, Eli Zaretskii wrote:
>> From: Richard Stallman <address@hidden>
>> Cc: address@hidden, address@hidden, address@hidden,
>>      address@hidden, address@hidden,
>>      address@hidden
>> Date: Thu, 11 Jul 2019 19:36:38 -0400
>>    > (let ((default-directory "~foo"))
>>    >    (expand-file-name "bar"))
>>    > => "~foo/~foo/bar"
>> That is not right, but I think "~foo/bar" would be right.
> No, I think this should yield an absolute file name starting with a
> slash (on Posix systems).
>>    > Part of what's confusing here is that file-name-absolute-p returns
>>    > t on file names starting with "~", even though its doc string
>>    > explicitly states that such a file name is not absolute.
>> This contradiction is not good.  But I would like to point out
>> that, in a certain sesne, a name starting with ~ is absolute.
>> It is not relative to the current directory.
> It is only absolute if what follows ~ is a slash or a name of an
> existing user.  I think we should fix the inconsistency in that
> direction.

Patch attached.


Attachment: fix_tilde.patch
Description: fix_tilde.patch

reply via email to

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