unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Mekeor Melire <mekeor@posteo.de>
To: "R. Clayton" <factotum@rclayton.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: seq-every-p documentation suggestion
Date: Wed, 21 Feb 2024 22:47:16 +0000	[thread overview]
Message-ID: <87wmqx8mak.fsf@posteo.de> (raw)

2024-02-20 21:53 factotum@rclayton.org:

> The documentation for seq-every-p is incomplete because it specifies a function
> satisfied by the definition
>
>   (defun seq-every-p (P S) t)
>
> which I'm assuming isn't an acceptable implementation for seq-every-p.  One
> potential fix is to rewrite the specification as
>
>   Return non-nil if and only if PRED returns non-nil for all the elements of
>   SEQUENCE.
>
> or more explicitly
>
>   Return non-nil if PRED returns non-nil for all the elements of SEQUENCE,
>   otherwise return nil.

Another alternative would be to use "iff":

    Return non-nil iff PRED returns non-nil for all the elements of
    SEQUENCE.

> The documentation should also describe what is expected when S is the empty
> list.

Sounds good. Would you like to submit a bug report and a patch?



             reply	other threads:[~2024-02-21 22:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-21 22:47 Mekeor Melire [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-02-21  2:53 seq-every-p documentation suggestion R. Clayton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wmqx8mak.fsf@posteo.de \
    --to=mekeor@posteo.de \
    --cc=factotum@rclayton.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).