bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#35206: [PATCH] Misleading `list-get' argument description


From: Mattias Engdegård
Subject: bug#35206: [PATCH] Misleading `list-get' argument description
Date: Tue, 9 Apr 2019 12:34:09 +0200

The doc string for `list-get' says

  Use TESTFN to lookup in the alist if non-nil.  Otherwise, use `assq'.

which is misleading since it's an equality predicate, not a look-up function, 
and the default is `eq', not `assq'.
How about changing it to

  Equality is defined by TESTFN or by `eq' if nil or omitted.

Attachment: 0001-Clarify-the-TESTFN-argument-to-alist-get.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]