GNU bug report logs -
#20411
24.3; Docstring of `next-single-property-change'
Previous Next
Reported by: Eli Barzilay <eli <at> barzilay.org>
Date: Thu, 23 Apr 2015 14:09:01 UTC
Severity: minor
Found in version 24.3
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20411 in the body.
You can then email your comments to 20411 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#20411
; Package
emacs
.
(Thu, 23 Apr 2015 14:09:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Eli Barzilay <eli <at> barzilay.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 23 Apr 2015 14:09:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
The documentation for `next-single-property-change' has:
Return nil if the property is constant all the way to the end of
object. If the value is non-nil, it is a position greater than
position, never equal.
Both of these are wrong when a bound is given.
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://barzilay.org/ Maze is Life!
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#20411
; Package
emacs
.
(Thu, 23 Apr 2015 15:33:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 20411 <at> debbugs.gnu.org (full text, mbox):
> From: Eli Barzilay <eli <at> barzilay.org>
> Date: Thu, 23 Apr 2015 10:08:01 -0400
>
> The documentation for `next-single-property-change' has:
>
> Return nil if the property is constant all the way to the end of
> object. If the value is non-nil, it is a position greater than
> position, never equal.
>
> Both of these are wrong when a bound is given.
Which is why the doc string says, right after the text you cited:
If the optional fourth argument LIMIT is non-nil, don't search
past position LIMIT; return LIMIT if nothing is found before LIMIT.
Isn't this exactly what you were looking for?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#20411
; Package
emacs
.
(Thu, 23 Apr 2015 20:31:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 20411 <at> debbugs.gnu.org (full text, mbox):
Bah. Yes, I completely missed that. Looking at it again, I think that
it's that "never equal" that threw me off and write code that assumes
that. To make it worse, it reads like an interface very similar to
`re-search-forward' up to that paragraph, and that "helped" me miss the
last sentence.
So I still think that it's confusing -- maybe "except when LIMIT is
non-nil" and possibly a warning that this is different from the
searching functions?
On Thu, Apr 23, 2015 at 11:31 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>> From: Eli Barzilay <eli <at> barzilay.org>
>> Date: Thu, 23 Apr 2015 10:08:01 -0400
>>
>> The documentation for `next-single-property-change' has:
>>
>> Return nil if the property is constant all the way to the end of
>> object. If the value is non-nil, it is a position greater than
>> position, never equal.
>>
>> Both of these are wrong when a bound is given.
>
> Which is why the doc string says, right after the text you cited:
>
> If the optional fourth argument LIMIT is non-nil, don't search
> past position LIMIT; return LIMIT if nothing is found before LIMIT.
>
> Isn't this exactly what you were looking for?
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://barzilay.org/ Maze is Life!
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Fri, 24 Apr 2015 08:29:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Eli Barzilay <eli <at> barzilay.org>
:
bug acknowledged by developer.
(Fri, 24 Apr 2015 08:29:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 20411-done <at> debbugs.gnu.org (full text, mbox):
> Date: Thu, 23 Apr 2015 16:29:55 -0400
> From: Eli Barzilay <eli <at> barzilay.org>
> Cc: 20411 <at> debbugs.gnu.org
>
> So I still think that it's confusing -- maybe "except when LIMIT is
> non-nil" and possibly a warning that this is different from the
> searching functions?
Thanks, I clarified the doc strings of this and similar functions in
this respect.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#20411
; Package
emacs
.
(Fri, 24 Apr 2015 16:33:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 20411-done <at> debbugs.gnu.org (full text, mbox):
On Fri, Apr 24, 2015 at 4:28 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>
> Thanks, I clarified the doc strings of this and similar functions in
> this respect.
Thanks -- that looks more robust now.
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://barzilay.org/ Maze is Life!
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 23 May 2015 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 86 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.