From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Pierre Lorenzon Newsgroups: gmane.emacs.bugs Subject: bug#25129: 26.0.50; seq-some function Date: Wed, 07 Dec 2016 17:57:06 +0100 (CET) Message-ID: <20161207.175706.1507322888948848044.devel@pollock-nageoire.net> References: <87vauwghyb.fsf@gmail.com> <87eg1k5951.fsf@petton.fr> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1481130858 19920 195.159.176.226 (7 Dec 2016 17:14:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 7 Dec 2016 17:14:18 +0000 (UTC) Cc: 25129@debbugs.gnu.org, nicolas@petton.fr To: tino.calancha@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 07 18:14:15 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEfnI-0003um-Bd for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Dec 2016 18:14:12 +0100 Original-Received: from localhost ([::1]:40324 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEfnM-0006PT-0E for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Dec 2016 12:14:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEfnD-0006OG-Ep for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2016 12:14:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEfn8-0002Mv-HL for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2016 12:14:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44077) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cEfn8-0002Mr-E8 for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2016 12:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cEfn8-0005eX-9X for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2016 12:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Pierre Lorenzon Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Dec 2016 17:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25129 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25129-submit@debbugs.gnu.org id=B25129.148113081621691 (code B ref 25129); Wed, 07 Dec 2016 17:14:02 +0000 Original-Received: (at 25129) by debbugs.gnu.org; 7 Dec 2016 17:13:36 +0000 Original-Received: from localhost ([127.0.0.1]:59476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEfmi-0005dn-7j for submit@debbugs.gnu.org; Wed, 07 Dec 2016 12:13:36 -0500 Original-Received: from smtp01.smtpout.orange.fr ([80.12.242.123]:56735 helo=smtp.smtpout.orange.fr) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEfmg-0005da-T3 for 25129@debbugs.gnu.org; Wed, 07 Dec 2016 12:13:35 -0500 Original-Received: from localhost ([86.246.134.14]) by mwinf5d24 with ME id H5DU1u0050JoMeW035DUhq; Wed, 07 Dec 2016 18:13:28 +0100 X-ME-Helo: localhost X-ME-Date: Wed, 07 Dec 2016 18:13:28 +0100 X-ME-IP: 86.246.134.14 In-Reply-To: X-Mailer: Mew version 6.7 on Emacs 26.0.50 / Mule 6.0 (HANACHIRUSATO) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:126619 Archived-At: From: Tino Calancha Subject: Re: bug#25129: 26.0.50; seq-some function Date: Wed, 7 Dec 2016 19:31:41 +0900 (JST) > > > On Wed, 7 Dec 2016, Nicolas Petton wrote: > >> Tino Calancha writes: >> >>> Nicolas Petton writes: >>> >>>> Pierre Lorenzon writes: >>>> >>>> Hi Pierre, >>>> >>>>> I well understand now that I must use seq-find instead of >>>>> seq-some but I think that I will not be the only one being >>>>> confused by these functions specifications ! >>>> >>>> There is a mistake (extra if) in the documentation, I will fix >>>> that. >>>> >>>> Other than that, is the following less confusing? >>>> >>>> Return non-nil if PRED returns non-nil for at least one element >>>> of SEQUENCE. >>>> If so, return the value returned by PRED. >> >>> The previous doc string contains more information: it >>> explicitely says >>> that it returns the _first_ non-nil (PRED element). >> >> Indeed, what about: >> >> Return non-nil if PRED returns non-nil for at least one element >> of SEQUENCE. >> If so, return the first non-nil value returned by PRED. > Yeah better. > The first line with the repetition of 'non-nil' sounds a little > poetic. > How about? > Return non-nil if PRED is satisfied for at least one element of > SEQUENCE. > If so, return the first non-nil value returned by PRED. OK that is in fact more precise. Pierre