From unknown Fri Jun 20 18:07:03 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#25129 <25129@debbugs.gnu.org> To: bug#25129 <25129@debbugs.gnu.org> Subject: Status: 26.0.50; seq-some function Reply-To: bug#25129 <25129@debbugs.gnu.org> Date: Sat, 21 Jun 2025 01:07:03 +0000 retitle 25129 26.0.50; seq-some function reassign 25129 emacs submitter 25129 Pierre Lorenzon severity 25129 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 07 03:26:43 2016 Received: (at submit) by debbugs.gnu.org; 7 Dec 2016 08:26:43 +0000 Received: from localhost ([127.0.0.1]:58805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEXYo-0003Ag-RG for submit@debbugs.gnu.org; Wed, 07 Dec 2016 03:26:43 -0500 Received: from eggs.gnu.org ([208.118.235.92]:47768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEXYn-0003AU-9t for submit@debbugs.gnu.org; Wed, 07 Dec 2016 03:26:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEXYg-0007bF-93 for submit@debbugs.gnu.org; Wed, 07 Dec 2016 03:26:36 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53273) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cEXYg-0007bB-5d for submit@debbugs.gnu.org; Wed, 07 Dec 2016 03:26:34 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEXYe-00041f-7t for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2016 03:26:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEXYa-0007Z9-6i for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2016 03:26:32 -0500 Received: from smtp09.smtpout.orange.fr ([80.12.242.131]:36122 helo=smtp.smtpout.orange.fr) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cEXYZ-0007Yg-Mm for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2016 03:26:28 -0500 Received: from localhost ([86.246.134.14]) by mwinf5d17 with ME id GwSG1u0020JoMeW03wSGbP; Wed, 07 Dec 2016 09:26:24 +0100 X-ME-Helo: localhost X-ME-Date: Wed, 07 Dec 2016 09:26:24 +0100 X-ME-IP: 86.246.134.14 Date: Wed, 07 Dec 2016 09:09:54 +0100 (CET) Message-Id: <20161207.090954.2116981160523579782.devel@pollock-nageoire.net> To: bug-gnu-emacs@gnu.org Subject: 26.0.50; seq-some function From: Pierre Lorenzon X-Mailer: Mew version 6.7 on Emacs 26.0.50 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Is documentation in following seq-somme function not ambiguous ? One might believe taht it returns the element and not the test result as it does. Moreover I suspect even if I did not verify that it was not so in a previous implementation since I had no error in my code before using seq-some. 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 ! In fact there is a very subtle difference between two documentation : value not equal element .... But what means value ? Is it obvious taht it means test result ? Regards Pierre >>> -- Code (cl-defgeneric seq-some (pred sequence) "Return the first value for which if (PRED element) is non-nil for in SEQUENCE." (catch 'seq--break (seq-doseq (elt sequence) (let ((result (funcall pred elt))) (when result (throw 'seq--break result)))) nil)) (cl-defgeneric seq-find (pred sequence &optional default) "Return the first element for which (PRED element) is non-nil in SEQUENCE. If no element is found, return DEFAULT. Note that `seq-find' has an ambiguity if the found element is identical to DEFAULT, as it cannot be known if an element was found or not." (catch 'seq--break (seq-doseq (elt sequence) (when (funcall pred elt) (throw 'seq--break elt))) default)) >>> -- End Code In GNU Emacs 26.0.50.1 (x86_64-unknown-linux-gnu) of 2016-11-15 built on jabberwocky Repository revision: db43613307bb05d0f43d2d5649b5bb2f29876cee Recent messages: Mark set Making completion list... Type "q" in help window to restore its previous buffer, C-M-v to scroll help. line-move-visual: End of buffer mouse-2, RET: find function's definition uncompressing seq.el.gz...done Note: file is write protected Unable to find location in file Mark saved where search started Making completion list... Configured using: 'configure --prefix=/usr --libdir=/usr/lib64 'CC=gcc -m64' PKG_CONFIG_PATH=/usr/lib64/pkgconfig' Configured features: JPEG SOUND NOTIFY GNUTLS LIBXML2 ZLIB Important settings: value of $LANG: C locale-coding-system: nil Major mode: Emacs-Lisp Minor modes in effect: gpm-mouse-mode: t global-ede-mode: t ede-minor-mode: t desktop-save-mode: t global-speechd-speak-mode: t speechd-speak-mode: t global-speechd-speak-map-mode: t speechd-speak-map-mode: t tooltip-mode: t electric-indent-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: /usr/local/share/emacs/site-lisp/customization/site-start hides /usr/share/emacs/site-lisp/site-start Features: (shadow emacsbug sendmail thingatpt eieio-opt j++-packages-sound-alsa-enumerated j++-packages-sound-alsa-iec958 j++-packages-sound-alsa-boolean j++-basic-widgets-synchronized-switch j++-basic-parsers-slot j++-packages-sound-alsa-two-integer j++-basic-widgets-synchronized-two-incdec j++-packages-sound-alsa-integer j++-basic-widgets-synchronized-incdec j++-basic-widgets-bar-title j++-basic-widgets-synchronized-object j++-packages-sound-alsa-item j++-packages-sound-alsa-amixer j++-interfaces-pointed j++-packages-sound-alsa-cclient j++-packages-sound-alsa-client j++-basic-parsers-parser j++-basic-parsers-utils utils/regexp utils/string j++-basic-synchronized j++-basic-processes-synchronous j++-basic-processes-command help-fns radix-tree debug vc-cvs vc-rcs misearch multi-isearch pp qp mew-varsx mew-unix inversion make-mode ede/srecode compile comint ansi-color log-edit easy-mmode message rfc822 mml mml-sec epa derived epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader ring pcvs-util add-log j++-packages-subsystems-descriptors-creator dired-aux j++-packages-scmel-results j++-packages-scmel-output speechd-el-extension t-mouse term/linux vc-dir ewoc ede/dired semantic/lex-spp pln-w3m mew-w3m w3m regexp-opt doc-view dired dired-loaddefs image-mode timezone w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util mew-auth mew-config mew-imap2 mew-imap mew-nntp2 mew-nntp mew-pop mew-smtp mew-ssl mew-ssh mew-net mew-highlight mew-sort mew-fib mew-ext mew-refile mew-demo mew-attach mew-draft mew-message mew-thread mew-virtual mew-summary4 mew-summary3 mew-summary2 mew-summary mew-search mew-pick mew-passwd mew-scan mew-syntax mew-bq mew-smime mew-pgp mew-header mew-exec mew-mark mew-mime mew-edit mew-decode mew-encode mew-cache mew-minibuf mew-complete mew-addrbook mew-local mew-vars3 mew-vars2 mew-vars mew-env mew-mule3 mew-mule mew-gemacs mew-key mew-func mew-blvs mew-const mew pln-mew pln-eww url-file url-dired eww mm-url gnus nnheader gnus-util rmail tool-bar rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr url-queue url url-proxy url-privacy url-history url-cookie url-domsuf mailcap shr svg xml dom browse-url format-spec url-expand url-util url-methods url-parse url-vars Tss-TeX-remap tex-style-system tex-site auto-loads j++-packages-databases-actions j++-basic-widgets-bar-object j++-packages-subsystems-descriptors-descriptor j++-packages-subsystems-descriptors-class j++-packages-databases-items-item j++-basic-mastered j++-basic-widgets-open-close-title j++-basic-widgets-title j++-basic-widgets-open-close-object j++-packages-subsystems-subsystems j++-packages-databases-database j++-packages-databases-mutable j++-interfaces-loadable-basic-logger j++-interfaces-basic-logger j++-interfaces-loadable-basic-lists-pointed j++-interfaces-basic-lists-pointed j++-basic-widgets-lists-pointed j++-basic-lists-pointed j++-basic-creator j++-interfaces-loadable-basic-lists-list j++-interfaces-basic-lists-list j++-basic-widgets-lists-list j++-basic-lists-list j++-basic-mapable j++-basic-sortable j++-project j++-packages-project-project j++-basic-files-file edext-project-latex edext-project-project edext-utils-vc vc-svn vc vc-dispatcher edext-target-exercise edext-target-history edext-target-student edext-target-latex edext edext-automake edext-srecode semantic/edit srecode/srt-mode semantic/analyze semantic/sort semantic/scope semantic/analyze/fcn semantic/db semantic/format srecode/template srecode/srt-wy semantic/wisent semantic/wisent/wisent semantic/ctxt edext-compat pln-ede srecode/insert srecode/filters srecode/args srecode/find srecode/map srecode/ctxt semantic/tag-ls semantic/find srecode/compile srecode/dictionary srecode/table srecode semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local find-func ede/proj-elisp ede/pconf ede/proj-misc ede/proj-shared ede/proj-prog ede/pmake ede/proj-obj ede/proj ede/make ede/proj-comp ede/autoconf-edit autoconf autoconf-mode pln-auctex pln-customization ede/speedbar ede/files ede ede/detect ede/base ede/auto ede/source eieio-speedbar speedbar sb-image ezimage image dframe cedet desktop frameset cus-start cus-load time-date j++-packages-scmel-efm-parameters j++-packages-scmel-efm-connection network-stream puny nsm subr-x auth-source password-cache starttls tls gnutls j++-packages-scmel-efm-driver j++-packages-scmel-efm-efm j++-packages-scmel-monitor j++-packages-scmel-scmel j++-basic-logger j++-basic-processes-network-filtered j++-basic-processes-filtered j++-basic-processes-put-and-get j++-basic-processes-network-stream j++-basic-processes-process j++-packages-subsystems-subsystem j++-interfaces-loadable-loadable j++-interfaces-interface j++-basic-widgets-object warnings j++-basic-files-loadable j++-basic-state j++-basic-files-serializable j++-basic-files-stringifiable j++-basic-files-load eieio-base eieio-custom wid-edit speechd-speak advice speechd-brltty speechd-braille braille mmanager brltty speechd-ssip speechd speechd-out eieio-compat cl-seq speechd-common jka-compr j++ j++-compat j++-precompat eieio eieio-core cl-macs eieio-loaddefs seq byte-opt bytecomp byte-compile cl-extra help-mode easymenu cconv cl gv cl-loaddefs pcase cl-lib mule-util disp-table tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote inotify multi-tty make-network-process emacs) Memory information: ((conses 16 402793 68817) (symbols 48 40865 109) (miscs 40 1386 237) (strings 32 90674 7379) (string-bytes 1 2616687) (vectors 16 45189) (vector-slots 8 963465 20687) (floats 8 1962 250) (intervals 56 8907 541) (buffers 976 76) (heap 1024 45549 1348)) From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 07 03:48:39 2016 Received: (at 25129) by debbugs.gnu.org; 7 Dec 2016 08:48:39 +0000 Received: from localhost ([127.0.0.1]:58821 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEXu3-0003hh-Fs for submit@debbugs.gnu.org; Wed, 07 Dec 2016 03:48:39 -0500 Received: from petton.fr ([89.234.186.68]:49613) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEXu1-0003hP-N1 for 25129@debbugs.gnu.org; Wed, 07 Dec 2016 03:48:38 -0500 From: Nicolas Petton To: Pierre Lorenzon , 25129@debbugs.gnu.org Subject: Re: bug#25129: 26.0.50; seq-some function In-Reply-To: <20161207.090954.2116981160523579782.devel@pollock-nageoire.net> References: <20161207.090954.2116981160523579782.devel@pollock-nageoire.net> Date: Wed, 07 Dec 2016 09:48:29 +0100 Message-ID: <87h96g5dlu.fsf@petton.fr> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=petton.fr; s=mail; t=1481100511; bh=Z4h4/kQ0+Lgau7fHdlumzot1zkQUEW+IbLMvCjrFWjY=; h=From:To:Subject:In-Reply-To:References:Date:Message-ID:MIME-Version:Content-Type; b=RZuac3RGuo/rhA7l9CF/V4C7vLif/xsB+WfbDeZ5GORdnl+n0iiOWea/34X7CPzdGMXto0VQoiC8VMWInlfis3OZiUrlwIDFLT4JLMh1Okw1etivtJv3P4dfyteyu/UW+6LURRHTKXRn0+09Cy7IVjM/DSdTOTK8DZJmE1ldDGE= X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 25129 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) --=-=-= Content-Type: text/plain 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. Cheers, Nico --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJYR8zdAAoJECM1h6R8IHkQR1UIAKwoSVvtz/wZ0kTanYeIgCeC ds8PQIuhWeGEA4fZB9e/aJ3HXD53q3NS9tirDY+PZT1daY05KwthmQRSRcUTEV65 Ah6x+1RP8nXLTdp1APbZqz2v3TxiC8DffPvGsIdiDRXGNWQCst9wKy5q2BHwZ+O/ /nsBd+9NtXfmzRm+fgvlaZxzt2uB7LedPBO/2n0DKJg5pCViT1u2cz6mM/oZ5PCg Jx87HaQK+EB2izkDbiYq1kGZLLv+hwo1v4TsmDXY8Js10luvwc+7WoWWgd183iNh wDGMn+kVYhSTQfWGxDXJOD7Q2Wio+c5t4meWT44LxAZhqkmnTmkgf4x/ZWoNKPs= =enUz -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 07 05:19:21 2016 Received: (at 25129) by debbugs.gnu.org; 7 Dec 2016 10:19:21 +0000 Received: from localhost ([127.0.0.1]:58855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEZJp-0007Y5-2q for submit@debbugs.gnu.org; Wed, 07 Dec 2016 05:19:21 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:35609) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEZJo-0007Xt-89 for 25129@debbugs.gnu.org; Wed, 07 Dec 2016 05:19:20 -0500 Received: by mail-pg0-f66.google.com with SMTP id p66so23070604pga.2 for <25129@debbugs.gnu.org>; Wed, 07 Dec 2016 02:19:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=qDviM2/shTLWx/Y4Vg+0bvBm3VXyoUimzt0FdQkxEWI=; b=oCtsSWhP21o4Dn1Kyshnz5w/a9os1TNtUkkj4GxqSnmofj6f5+0lChShAFv2vLW8gu r+DI2P1cAKnDqbZeon+4DrWFp6dRg2iPaFq/+YXhn1M8ULpsKC3z7R70mmR/0Pe2RJzx n6IB0hK1xQtMsZcw9W6K9L652LgkgOgju+la863qLq3l6MvTt3N7WtkRjimLcZvSLvCZ 3lSWsKB8edodtfB3L/mjMmB0fFXYT8WuAa3xeAnmVt68Gr4pCnr5CVIgC7nSlzfwbANX 2y2hhmxpt3Q1GyFll2SKXwr1NhZZUAE01WPSZxOni36/ygv4x9mP1dKXbNX3LSdoFOwL 3Sxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=qDviM2/shTLWx/Y4Vg+0bvBm3VXyoUimzt0FdQkxEWI=; b=lVejcd6uRZY6zFEXwIKtooVUbkrpCRSZ71mnDbXPUl+MF5h08j01qD73EYnyQsQ5ad 7QRSczMfyWlais3vVZvvDV4kLybbow47SIWz09ygL2KrJYKmFxXD8kk3v7/k6QTZXEXi QZqKCJjF+rIaxR5+dALnfPsywp8VN4LgFabn8Kpphtg4BcCfdotiG8rIDeB6++/kRFHJ nWdK6Ib2q8uA+8CrxYgLHEhk4oWVdSUytr1cMM8hXjunLFK+NY78mxR3UHE6UAiJhWxf JxaB+0ICk3m23arhLUv1/U8D9DC84w4Bn+qQf+ushYpx99ox4SjJYSJ9aaZ6jWFYVd8P Mcew== X-Gm-Message-State: AKaTC00id3Txyldu/KAHyLiSeQ93vLs9mC/TijtWThU5pL1VVznJpa98zcfb7NRyLPKFIQ== X-Received: by 10.84.216.24 with SMTP id m24mr74148086pli.26.1481105954370; Wed, 07 Dec 2016 02:19:14 -0800 (PST) Received: from calancha-pc (pl676.nas813.p-iwate.nttpc.ne.jp. [124.154.237.164]) by smtp.gmail.com with ESMTPSA id i11sm41514373pgn.17.2016.12.07.02.19.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Dec 2016 02:19:13 -0800 (PST) From: Tino Calancha To: Nicolas Petton Subject: Re: bug#25129: 26.0.50; seq-some function References: <20161207.090954.2116981160523579782.devel@pollock-nageoire.net> <87h96g5dlu.fsf@petton.fr> Date: Wed, 07 Dec 2016 19:19:08 +0900 In-Reply-To: <87h96g5dlu.fsf@petton.fr> (Nicolas Petton's message of "Wed, 07 Dec 2016 09:48:29 +0100") Message-ID: <87vauwghyb.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 25129 Cc: 25129@debbugs.gnu.org, Pierre Lorenzon , tino.calancha@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 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). From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 07 05:25:07 2016 Received: (at 25129) by debbugs.gnu.org; 7 Dec 2016 10:25:08 +0000 Received: from localhost ([127.0.0.1]:58859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEZPP-0007hE-NA for submit@debbugs.gnu.org; Wed, 07 Dec 2016 05:25:07 -0500 Received: from petton.fr ([89.234.186.68]:50549) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEZPO-0007gg-Ib for 25129@debbugs.gnu.org; Wed, 07 Dec 2016 05:25:07 -0500 From: Nicolas Petton To: Tino Calancha Subject: Re: bug#25129: 26.0.50; seq-some function In-Reply-To: <87vauwghyb.fsf@gmail.com> References: <20161207.090954.2116981160523579782.devel@pollock-nageoire.net> <87h96g5dlu.fsf@petton.fr> <87vauwghyb.fsf@gmail.com> Date: Wed, 07 Dec 2016 11:24:58 +0100 Message-ID: <87eg1k5951.fsf@petton.fr> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=petton.fr; s=mail; t=1481106300; bh=DcjUZzGWy4hEeTMol4eJcC3E4dKSJv88LY2gdI/jVIs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:MIME-Version:Content-Type; b=vsj0U9evhD5l+Sc03O6nYNeUIQNf5K8JBQzLLmnMK15s85qEqJJ75j1MCqY4qLrfX62CTuWWuCbzEbXYaX3HKLv+hxWIr9rpznisQIRh7W7KoHquTAjHRBv2svANHpLwRlUIytrdjdCJaGkxGVQTF79sctrGJ3Nv3PCfRzIdJIw= X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 25129 Cc: 25129@debbugs.gnu.org, Pierre Lorenzon , tino.calancha@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) --=-=-= Content-Type: text/plain 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. Cheers, Nico --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJYR+N6AAoJECM1h6R8IHkQYdkH/jMJ3Y8BzE5+jXUXA3kNclwq 7TFQHJTMlwN8Kj+JTwf//JLbsWGG0uEvKDlgV5TIjKZmKmMV05EHsCh+AWExvbKP Z3Rv+qKo1BwvKj0SVVO1Lx/VRPTHpTB56VHfYnuVzh+D8WRoTPtkLpHt6uUXigEc 4ZJNqhAfxwoyZqKXOzk1aCd7/iWlq3HtnfkEPlmWms6edusjPpRrvKRcnCGGYgL+ G5Wvgwqyzoc9Ix5Oz1KXVzTU2+NnsQ+Xkujf2yHR8ANyAqrROrC9ECw3+7DoPVi8 tEfnF9L24EowyiW07OSqFBHWOqX7VrtNXVOegzGN0gIR4fnPdY6EK8U+g6cgOxM= =/rsJ -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 07 05:31:52 2016 Received: (at 25129) by debbugs.gnu.org; 7 Dec 2016 10:31:52 +0000 Received: from localhost ([127.0.0.1]:58863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEZVw-0007sH-Dl for submit@debbugs.gnu.org; Wed, 07 Dec 2016 05:31:52 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:33085) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEZVu-0007s5-EJ for 25129@debbugs.gnu.org; Wed, 07 Dec 2016 05:31:50 -0500 Received: by mail-pg0-f65.google.com with SMTP id 3so23123369pgd.0 for <25129@debbugs.gnu.org>; Wed, 07 Dec 2016 02:31:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=xURvVEENvZeBR9CcC+uQ/Redbz7X5krQx6KC2PHoKmE=; b=dDo3VE9vG6c8IlSYdu5KHH1yPtLWvD01SFyZMuGsrcGw74dEnwroN3fBu9AZmORHOu 1MIphHAmI4aVeSYWPqDB+b0cmCzEZkiKTQeLZlGCrRZUQqczyPbuCUwalWSaNq+QZWgN OZMcwkEaSRmbEecxkDX50Q4Cq3mB+M4Ilse1iJnC/tgEJ1+OUFTQRk3DUxRisPvyMY1p uqXyIy8+pgmc17GALXl640n/2+4ZecrSYQ+cjhJMgAObAaXocPbTlepOI6koHOu9zMSg pv2vZHWNtWW21VUZSJBY9tDeg3gXegYsyP1YLZ8gzD/Vvp5hDiKqA8l5FvIJy/6dEySD 76Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=xURvVEENvZeBR9CcC+uQ/Redbz7X5krQx6KC2PHoKmE=; b=Gtg+9b2DjoVmSl5RDs/kwFkvKSxUH3t5foL3Z0UKK2XhJ3pzT8TOC/dsd6o5u+YIDR 7vb8jX8FNxnsX1ibcfIx7x9Rv3mVD0RhEg/5z9ouNmFqt0kE7ZluL2Tl7qw06h6fC+DX MHPPhilhdKJL9bD9ii0IpICUz46BnQb0TIlDvW7EK8xAQ8IhotutEFmxJn2LikmY9U3h CI+wXiIPBAN220YX0oLpS2gbP6jAeaf7qnJOGqwf5tdpH2VJE9FRuaSO+Lz11EHqHWjo jJnFPc3y3DN02gxAnoF+J4vzn3r+vX8K01rwCfV5K+4u+Ik1sUWxrxG7MFUcUFkzTsmp fpRg== X-Gm-Message-State: AKaTC02jh64k3BKSy+dC/1E6U8+hyJZ53pNJtqtj8clTZdDG017597o3KYzm1QxCgkEIww== X-Received: by 10.98.34.68 with SMTP id i65mr67537368pfi.135.1481106704668; Wed, 07 Dec 2016 02:31:44 -0800 (PST) Received: from calancha-pc (pl676.nas813.p-iwate.nttpc.ne.jp. [124.154.237.164]) by smtp.gmail.com with ESMTPSA id x2sm41368319pfx.65.2016.12.07.02.31.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Dec 2016 02:31:44 -0800 (PST) From: Tino Calancha X-Google-Original-From: Tino Calancha Date: Wed, 7 Dec 2016 19:31:41 +0900 (JST) X-X-Sender: calancha@calancha-pc To: Nicolas Petton Subject: Re: bug#25129: 26.0.50; seq-some function In-Reply-To: <87eg1k5951.fsf@petton.fr> Message-ID: References: <20161207.090954.2116981160523579782.devel@pollock-nageoire.net> <87h96g5dlu.fsf@petton.fr> <87vauwghyb.fsf@gmail.com> <87eg1k5951.fsf@petton.fr> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 25129 Cc: 25129@debbugs.gnu.org, Pierre Lorenzon , Tino Calancha X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 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. From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 07 07:31:41 2016 Received: (at 25129) by debbugs.gnu.org; 7 Dec 2016 12:31:41 +0000 Received: from localhost ([127.0.0.1]:58922 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEbNs-00041J-Sz for submit@debbugs.gnu.org; Wed, 07 Dec 2016 07:31:41 -0500 Received: from petton.fr ([89.234.186.68]:52843) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEbNr-0003to-53; Wed, 07 Dec 2016 07:31:39 -0500 From: Nicolas Petton To: Tino Calancha Subject: Re: bug#25129: 26.0.50; seq-some function In-Reply-To: References: <20161207.090954.2116981160523579782.devel@pollock-nageoire.net> <87h96g5dlu.fsf@petton.fr> <87vauwghyb.fsf@gmail.com> <87eg1k5951.fsf@petton.fr> Date: Wed, 07 Dec 2016 13:31:30 +0100 Message-ID: <87bmwn6hul.fsf@petton.fr> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=petton.fr; s=mail; t=1481113892; bh=iQ4+/jBkPOeWN+XpWlc9z/1j6B7HsOqGMT12SBBzazo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:MIME-Version:Content-Type; b=pQzbQdcViaJBmvEMy1zo3ppScwE7hFU/suyrMjrcrHAY423ZOK5KS1/XONxZp3Cb8xMpAh21anig7vN0vbX9ZaA/+bm/yPFhn7bncfRgDByRExC677N8HWpcGDhQTAoQnCO6OgbADDKBXlcxFSBMZtJl3qXiGG8Sa6TMBIJZdlA= X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 25129 Cc: 25129@debbugs.gnu.org, 25129-done@debbugs.gnu.org, Pierre Lorenzon , Tino Calancha X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) --=-=-= Content-Type: text/plain Tino Calancha writes: > 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. Is poetic bad? ;-) I'll apply your version, so I'm closing this issue. Cheers, Nico --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJYSAEiAAoJECM1h6R8IHkQ5+sIAM4u3helayrbJi3RKr81GDh4 ykwk9lgXMnHTPuZdHe42yz7xRM5mlr7USWVsRka2MbWfRvyk4qgPPtgb31sLbduu Nh6lTgJWzOecgiyJShkS9y5FKrUbIKRNh2Eq9JJNE0kkiHBzSPoZtHe3P5XyuIKz HWUuComeQik5F091zt41i3P598FEmfB49vM4odJeKt/6bgu2m06rLZ+QdXvhOdGB oPFsk9sz/5i6M/MypGHKzmjCFneoTLLD1sOVU943sywQ9PgtAwRouZF5ZvRqXJ51 4tgvzKJtF4ApU70G7v/SXwzYK0CIYeALlOk0hdpseIWraUcVRTcLrFIWKRSZXtQ= =vK+S -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 07 11:16:21 2016 Received: (at 25129) by debbugs.gnu.org; 7 Dec 2016 16:16:21 +0000 Received: from localhost ([127.0.0.1]:59420 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEetJ-0000pQ-9N for submit@debbugs.gnu.org; Wed, 07 Dec 2016 11:16:21 -0500 Received: from eggs.gnu.org ([208.118.235.92]:60095) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEetH-0000pD-P9 for 25129@debbugs.gnu.org; Wed, 07 Dec 2016 11:16:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEet8-0001Bl-AB for 25129@debbugs.gnu.org; Wed, 07 Dec 2016 11:16:14 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEet8-0001Bf-6n; Wed, 07 Dec 2016 11:16:10 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1418 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cEet7-0008Dk-Bt; Wed, 07 Dec 2016 11:16:09 -0500 Date: Wed, 07 Dec 2016 18:16:32 +0200 Message-Id: <83pol3iujj.fsf@gnu.org> From: Eli Zaretskii To: Tino Calancha In-reply-to: (message from Tino Calancha on Wed, 7 Dec 2016 19:31:41 +0900 (JST)) Subject: Re: bug#25129: 26.0.50; seq-some function References: <20161207.090954.2116981160523579782.devel@pollock-nageoire.net> <87h96g5dlu.fsf@petton.fr> <87vauwghyb.fsf@gmail.com> <87eg1k5951.fsf@petton.fr> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -8.0 (--------) X-Debbugs-Envelope-To: 25129 Cc: 25129@debbugs.gnu.org, nicolas@petton.fr X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -8.0 (--------) > From: Tino Calancha > Date: Wed, 7 Dec 2016 19:31:41 +0900 (JST) > Cc: 25129@debbugs.gnu.org, Tino Calancha > > > 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. My suggestion: Call PRED on elements of SEQUENCE and return first non-nil value it returns. From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 07 11:45:15 2016 Received: (at 25129) by debbugs.gnu.org; 7 Dec 2016 16:45:15 +0000 Received: from localhost ([127.0.0.1]:59454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEfLG-0003GV-VW for submit@debbugs.gnu.org; Wed, 07 Dec 2016 11:45:15 -0500 Received: from smtp01.smtpout.orange.fr ([80.12.242.123]:37015 helo=smtp.smtpout.orange.fr) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEfLF-0003GB-Be for 25129@debbugs.gnu.org; Wed, 07 Dec 2016 11:45:13 -0500 Received: from localhost ([86.246.134.14]) by mwinf5d24 with ME id H4l41u0050JoMeW034l4Wn; Wed, 07 Dec 2016 17:45:06 +0100 X-ME-Helo: localhost X-ME-Date: Wed, 07 Dec 2016 17:45:06 +0100 X-ME-IP: 86.246.134.14 Date: Wed, 07 Dec 2016 17:28:42 +0100 (CET) Message-Id: <20161207.172842.539369297027198559.devel@pollock-nageoire.net> To: nicolas@petton.fr Subject: Re: bug#25129: 26.0.50; seq-some function From: Pierre Lorenzon In-Reply-To: <87h96g5dlu.fsf@petton.fr> References: <20161207.090954.2116981160523579782.devel@pollock-nageoire.net> <87h96g5dlu.fsf@petton.fr> X-Mailer: Mew version 6.7 on Emacs 26.0.50 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 25129 Cc: 25129@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) From: Nicolas Petton Subject: Re: bug#25129: 26.0.50; seq-some function Date: Wed, 07 Dec 2016 09:48:29 +0100 > 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. Good ! > > 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. Yes this is absolutely clear now from my point of view. I know taht this function has been first called seq-some-p then seq-(some and its spec has maybe changed as well. But now with your new documentation I htink that documentation fit function behavior. That's only what we need. The fact that function fit our own need is another question : in fact seq-find does ! Thanks ! Pierre > > Cheers, > Nico From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 07 12:13:36 2016 Received: (at 25129) by debbugs.gnu.org; 7 Dec 2016 17:13:36 +0000 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 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 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 Date: Wed, 07 Dec 2016 17:57:06 +0100 (CET) Message-Id: <20161207.175706.1507322888948848044.devel@pollock-nageoire.net> To: tino.calancha@gmail.com Subject: Re: bug#25129: 26.0.50; seq-some function From: Pierre Lorenzon In-Reply-To: References: <87vauwghyb.fsf@gmail.com> <87eg1k5951.fsf@petton.fr> X-Mailer: Mew version 6.7 on Emacs 26.0.50 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 25129 Cc: 25129@debbugs.gnu.org, nicolas@petton.fr X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 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 From unknown Fri Jun 20 18:07:03 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 05 Jan 2017 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator