GNU bug report logs - #57561
Improve documentation of seq-position

Previous Next

Package: emacs;

Reported by: Damien Cassou <damien <at> cassou.me>

Date: Sat, 3 Sep 2022 13:01:02 UTC

Severity: minor

Tags: patch

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.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 57561 in the body.
You can then email your comments to 57561 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#57561; Package emacs. (Sat, 03 Sep 2022 13:01:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Damien Cassou <damien <at> cassou.me>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 03 Sep 2022 13:01:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Damien Cassou <damien <at> cassou.me>
To: bug-gnu-emacs <at> gnu.org
Subject: Improve documentation of seq-position
Date: Sat, 03 Sep 2022 15:00:38 +0200
[Message part 1 (text/plain, inline)]
Tags: patch

Fix documentation of `seq-position' according to Eli Zaretskii's
recommendation.

-- 
Damien Cassou

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill
[0001-Improve-documentation-of-seq-position.patch (text/patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57561; Package emacs. (Sat, 03 Sep 2022 13:31:02 GMT) Full text and rfc822 format available.

Message #8 received at 57561 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Damien Cassou <damien <at> cassou.me>
Cc: 57561 <at> debbugs.gnu.org
Subject: Re: bug#57561: Improve documentation of seq-position
Date: Sat, 03 Sep 2022 15:30:40 +0200
Damien Cassou <damien <at> cassou.me> writes:

> -  "Return the index of the first element in SEQUENCE that is equal to ELT.
> -Equality is defined by TESTFN if non-nil or by `equal' if nil."
> +  "Return the (zero-based) index of the first element in SEQUENCE that is equal to ELT.

This makes the first line too long.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57561; Package emacs. (Sat, 03 Sep 2022 14:25:02 GMT) Full text and rfc822 format available.

Message #11 received at 57561 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: damien <at> cassou.me, 57561 <at> debbugs.gnu.org
Subject: Re: bug#57561: Improve documentation of seq-position
Date: Sat, 03 Sep 2022 17:23:58 +0300
> Cc: 57561 <at> debbugs.gnu.org
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Sat, 03 Sep 2022 15:30:40 +0200
> 
> Damien Cassou <damien <at> cassou.me> writes:
> 
> > -  "Return the index of the first element in SEQUENCE that is equal to ELT.
> > -Equality is defined by TESTFN if non-nil or by `equal' if nil."
> > +  "Return the (zero-based) index of the first element in SEQUENCE that is equal to ELT.
> 
> This makes the first line too long.

Yes.  The usual fix would be

  Return the (zero-based) index of the first element in SEQUENCE equal to ELT.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57561; Package emacs. (Sat, 03 Sep 2022 16:54:02 GMT) Full text and rfc822 format available.

Message #14 received at 57561 <at> debbugs.gnu.org (full text, mbox):

From: Damien Cassou <damien <at> cassou.me>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 57561 <at> debbugs.gnu.org
Subject: Re: bug#57561: Improve documentation of seq-position
Date: Sat, 03 Sep 2022 18:52:54 +0200
[Message part 1 (text/plain, inline)]
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> Damien Cassou <damien <at> cassou.me> writes:
>> -  "Return the index of the first element in SEQUENCE that is equal to ELT.
>> -Equality is defined by TESTFN if non-nil or by `equal' if nil."
>> +  "Return the (zero-based) index of the first element in SEQUENCE that is equal to ELT.
>
> This makes the first line too long.

Indeed. I applied the change suggested by Eli. Also, the same sentence
appeared several times in the file so the patch changes them all.

-- 
Damien Cassou

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill
[0001-Improve-documentation-of-seq-position.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57561; Package emacs. (Sat, 03 Sep 2022 16:57:01 GMT) Full text and rfc822 format available.

Message #17 received at 57561 <at> debbugs.gnu.org (full text, mbox):

From: Damien Cassou <damien <at> cassou.me>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 57561 <at> debbugs.gnu.org
Subject: Re: bug#57561: Improve documentation of seq-position
Date: Sat, 03 Sep 2022 18:56:30 +0200
[Message part 1 (text/plain, inline)]
Damien Cassou <damien <at> cassou.me> writes:
> Indeed. I applied the change suggested by Eli. Also, the same sentence
> appeared several times in the file so the patch changes them all.

Here is the correct patch (the comment was changed). I'm sorry for the
noise.

-- 
Damien Cassou

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill
[0001-Improve-documentation-of-several-functions-in-seq.el.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57561; Package emacs. (Sun, 04 Sep 2022 11:01:02 GMT) Full text and rfc822 format available.

Message #20 received at 57561 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Damien Cassou <damien <at> cassou.me>
Cc: 57561 <at> debbugs.gnu.org
Subject: Re: bug#57561: Improve documentation of seq-position
Date: Sun, 04 Sep 2022 13:00:34 +0200
Damien Cassou <damien <at> cassou.me> writes:

> Here is the correct patch (the comment was changed). I'm sorry for the
> noise.

Thanks; pushed to Emacs 29.





bug marked as fixed in version 29.1, send any further explanations to 57561 <at> debbugs.gnu.org and Damien Cassou <damien <at> cassou.me> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 04 Sep 2022 11:04:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 02 Oct 2022 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 205 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.