GNU bug report logs -
#40000
27.0.60; next-single-char-property-change hangs on bad argument
Previous Next
Reported by: Yuan Fu <casouri <at> gmail.com>
Date: Mon, 9 Mar 2020 15:41:02 UTC
Severity: normal
Found in version 27.0.60
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Federico Tedin <federicotedin <at> gmail.com>
>> Date: Mon, 13 Apr 2020 15:52:17 +0200
>> Cc: 40000 <at> debbugs.gnu.org
>>
>> I'm attaching a patch which solves the issue. Now, all the
>> `next-*-property-change' functions return LIMIT when it has been
>> specified and no properties where found up to the buffer's end.
>
> Doesn't that contradict the documentation? It says:
>
> If the property is constant all the way to the end of OBJECT, return the
> last valid position in OBJECT.
>
> Your change means this will no longer be true when LIMIT > EOB.
>
> Thanks.
Aah OK, I missed that part at the end. But if I evaluate:
(next-single-char-property-change 0 'test "hello" 10000)
It still returns 10000. Is it possible that "return LIMIT if nothing is
found before LIMIT" is meant to take precedence over "return the last
valid position in OBJECT"?
This bug report was last modified 5 years and 9 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.