From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Documentation for `seq-contains-p` is outdated Date: Sat, 29 Aug 2020 21:40:21 +0300 Message-ID: <83o8mtxpm2.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8822"; mail-complaints-to="usenet@ciao.gmane.io" Cc: iwanintgroen@gmail.com, emacs-devel@gnu.org To: Daniel =?utf-8?Q?Mart=C3=ADn?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Aug 29 20:41:10 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kC5mn-0002Cg-OY for ged-emacs-devel@m.gmane-mx.org; Sat, 29 Aug 2020 20:41:09 +0200 Original-Received: from localhost ([::1]:42056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kC5mm-0000Lj-KD for ged-emacs-devel@m.gmane-mx.org; Sat, 29 Aug 2020 14:41:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50658) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kC5m8-0008Mj-7U for emacs-devel@gnu.org; Sat, 29 Aug 2020 14:40:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57076) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kC5m7-0005Qu-R6; Sat, 29 Aug 2020 14:40:27 -0400 Original-Received: from [176.228.60.248] (port=2041 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kC5m7-0008CD-6W; Sat, 29 Aug 2020 14:40:27 -0400 In-Reply-To: (message from Daniel =?utf-8?Q?Mart?= =?utf-8?Q?=C3=ADn?= on Sat, 29 Aug 2020 20:18:56 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:254396 Archived-At: > From: Daniel Martín > Cc: emacs-devel@gnu.org > Date: Sat, 29 Aug 2020 20:18:56 +0200 > > Iwan in 't Groen writes: > > > Hi, > > > > When looking up the documentation for `seq-contains-p` it seems > > outdated. > > > > M-x elisp-index-search RET seq-contains-p RET returns: > > > > -- Function: seq-contains-p sequence elt &optional function > > This function returns non-‘nil’ if at least one element in SEQUENCE > > is equal to ELT. If the optional argument FUNCTION is non-‘nil’, > > it is a function of two arguments to use instead of the default > > ‘equal’. > > > > (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. > > Thank you for your contribution to Emacs. The change looks good to > me. If I'm not mistaken, this new function was introduced in 27.1, so > this might be a safe patch for 27.2. I've only left a comment, but let's > wait for other Emacs developers to do a proper review of this patch > (Nicolas Petton seems like the best person to do so). This was already fixed, see bug#42871.