bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#42871: 28.0.50; Documentation for `seq-contains-p` is outdated


From: Iwan in 't Groen
Subject: bug#42871: 28.0.50; Documentation for `seq-contains-p` is outdated
Date: Wed, 19 Aug 2020 10:14:28 +0200


> On 15 Aug 2020, at 17:17, Eli Zaretskii <eliz@gnu.org> wrote:
> 
>> From: Iwan in 't Groen <iwanintgroen@gmail.com>
>> Date: Sat, 15 Aug 2020 16:04:12 +0200
>> 
>>         (seq-contains '(symbol1 symbol2) 'symbol1)
>>         ⇒ symbol1
>>         (seq-contains '(symbol1 symbol2) 'symbol3)
>>         ⇒ nil
>> 
>> The title is correct but the information shown is for the obsolete
>> `seq-contains` function.
> 
> Thanks, fixed.

The return value in the description of this function (now a predicate) should 
also be changed.

Currently is says:
This function returns non-‘nil’ if at least one element in SEQUENCE is equal to 
ELT.

It should be:
This function returns ’t’ if at least one element in SEQUENCE is equal to ELT.

diff --git a/doc/lispref/sequences.texi b/doc/lispref/sequences.texi
index ca52369bd0..bb80307c8c 100644
--- a/doc/lispref/sequences.texi
+++ b/doc/lispref/sequences.texi
@@ -784,7 +784,7 @@ Sequence Functions
 
 
 @defun seq-contains-p sequence elt &optional function
-  This function returns non-@code{nil} if at least one element in
+  This function returns @code{t} if at least one element in
 @var{sequence} is equal to @var{elt}.  If the optional argument
 @var{function} is non-@code{nil}, it is a function of two arguments to
 use instead of the default @code{equal}.






reply via email to

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