From: "Mattias Engdegård" <mattiase@acm.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 35206@debbugs.gnu.org
Subject: bug#35206: [PATCH] Misleading `list-get' argument description
Date: Tue, 9 Apr 2019 13:45:34 +0200 [thread overview]
Message-ID: <75D164EF-3F6F-4E45-ADCB-7A6C25DF4453@acm.org> (raw)
In-Reply-To: <29604A23-C01D-4DE5-9D40-493EAC445056@acm.org>
>
> Comparison of KEY against the car of each ALIST element
> is made using TESTFN, or `eq' if nil or omitted.
If no knowledge whatsoever of alists can be assumed on the part of the reader, perhaps this would be better:
"Return the value associated with KEY in ALIST.
+The value is the cdr of the first element in ALIST whose car is equal to KEY.
If KEY is not found in ALIST, return DEFAULT.
-Use TESTFN to lookup in the alist if non-nil. Otherwise, use `assq'.
+Equality is defined by TESTFN or by `eq' if nil or omitted.
next prev parent reply other threads:[~2019-04-09 11:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-09 10:34 bug#35206: [PATCH] Misleading `list-get' argument description Mattias Engdegård
2019-04-09 11:00 ` Eli Zaretskii
2019-04-09 11:26 ` Mattias Engdegård
2019-04-09 11:45 ` Mattias Engdegård [this message]
2019-04-09 14:41 ` Eli Zaretskii
2019-04-09 14:59 ` Mattias Engdegård
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=75D164EF-3F6F-4E45-ADCB-7A6C25DF4453@acm.org \
--to=mattiase@acm.org \
--cc=35206@debbugs.gnu.org \
--cc=eliz@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).