From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Iwan in 't Groen Newsgroups: gmane.emacs.devel Subject: Documentation for `seq-contains-p` is outdated Date: Sat, 15 Aug 2020 16:14:19 +0200 Message-ID: Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19788"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Aug 15 17:11:06 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 1k6xpp-00052p-Lq for ged-emacs-devel@m.gmane-mx.org; Sat, 15 Aug 2020 17:11:05 +0200 Original-Received: from localhost ([::1]:33902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k6xpo-00015p-L2 for ged-emacs-devel@m.gmane-mx.org; Sat, 15 Aug 2020 11:11:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52364) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k6xnI-0005xY-VH for emacs-devel@gnu.org; Sat, 15 Aug 2020 11:08:28 -0400 Original-Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:44367) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k6xnH-0007vp-6E for emacs-devel@gnu.org; Sat, 15 Aug 2020 11:08:28 -0400 Original-Received: by mail-ej1-x62b.google.com with SMTP id bo3so12903899ejb.11 for ; Sat, 15 Aug 2020 08:08:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=FW6wPErqNeWHb5VOiAAQ5Qh7DBVlJvU2kiOxQD5e8Hw=; b=V/TMTEtJLri4ZgxBPAqg0EvRQKLeiUerD+p2YTDZirhBOC3tD1lHzesLYqjCJFMCH1 dB1aeWdY32i+HqrQ6sSaqpMXsvLpi3j8LxUqKzId95bhs9gPFRmz/HIxu8S2idhiI3b6 05vbRshNE8BWsjyXr3ozwFYqlIyciCCveDhrAa6rE8TkAiFbcJjYx+mdUfwqjbrnY/c4 RxxpkBneCcXa3kNXRWDhmUvVm9G3sNsm0XrSjJhdOW5QJN1k8bIQTNqpAU4+OqeeKba6 HNYoqK0NmT8fZYffaZ9RBbL64vmct9aCGTVC5qnhMjkeYqMukX2tEHDGJ68/ze+MzXlG MF0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=FW6wPErqNeWHb5VOiAAQ5Qh7DBVlJvU2kiOxQD5e8Hw=; b=OfAQogzmBLNIKSqQ6XZz8ss/T7ZOWuINDt6BC6f1ZfmsJM0b0RU8Lc/JjBnFrrqf9S cS4bswayKcnyRN6ZH0vUjHnZqKr8sYZ3apmSiC3kV041S4cyN75DIsC4tZZ9RpEkIYd0 wCqVktOWbQuK8h3kVYAhiYDcycPpW0at1kBgCIgwUfCJtsi1RKhU++b5qPWIJ753W/dp 3hK2lbdHafyng55k50AO7VrLTIfDeOlpXCCm+VWBU9iWbNASq98pCYUIQt8MTfsW5072 2URh0ym4k5F9vHG71Ep2nubWzpR/zTQMQs1Nd7DGkN2tsV2+ZKNzBGNd1qcJMze5ZUED 8fcA== X-Gm-Message-State: AOAM5324BX/wFJiKKOmx+7CV5s7wIOwqU0PmydKPQ284rH3o9Of+Xp/m qxCDJ2kN8lfQhTs6hfX/a6MziAI77C4Wqg== X-Google-Smtp-Source: ABdhPJxXtM2BUZkiirNeDjDQqTXG1o1Y5MusgSIiG/hurrXAUmncnm0VlGxWbqqLmWEQQmbk20Pp0g== X-Received: by 2002:a50:9d8a:: with SMTP id w10mr6865594ede.16.1597500861249; Sat, 15 Aug 2020 07:14:21 -0700 (PDT) Original-Received: from [192.168.1.7] (ip47-32-173-82.adsl2.static.versatel.nl. [82.173.32.47]) by smtp.gmail.com with ESMTPSA id t18sm9472781ejf.38.2020.08.15.07.14.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Aug 2020 07:14:20 -0700 (PDT) X-Mailer: Apple Mail (2.3608.120.23.2.1) Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=iwanintgroen@gmail.com; helo=mail-ej1-x62b.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:253796 Archived-At: 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-=E2=80=98nil=E2=80=99 if at least one = element in SEQUENCE is equal to ELT. If the optional argument FUNCTION is = non-=E2=80=98nil=E2=80=99, it is a function of two arguments to use instead of the default =E2=80=98equal=E2=80=99. (seq-contains '(symbol1 symbol2) 'symbol1) =E2=87=92 symbol1 (seq-contains '(symbol1 symbol2) 'symbol3) =E2=87=92 nil The title is correct but the information shown is for the obsolete `seq-contains` function. Best regards, Iwan in =E2=80=99t Groen diff --git a/doc/lispref/sequences.texi b/doc/lispref/sequences.texi index 91c3049f87..bb80307c8c 100644 --- a/doc/lispref/sequences.texi +++ b/doc/lispref/sequences.texi @@ -784,18 +784,18 @@ 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}. @example @group -(seq-contains '(symbol1 symbol2) 'symbol1) -@result{} symbol1 +(seq-contains-p '(symbol1 symbol2) 'symbol1) +@result{} t @end group @group -(seq-contains '(symbol1 symbol2) 'symbol3) +(seq-contains-p '(symbol1 symbol2) 'symbol3) @result{} nil @end group @end example=