[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#3155: 23.0.92; doc string of assoc-default
From: |
Drew Adams |
Subject: |
bug#3155: 23.0.92; doc string of assoc-default |
Date: |
Tue, 28 Apr 2009 14:02:17 -0700 |
Doc string:
Find object KEY in a pseudo-alist ALIST.
ALIST is a list of conses or objects. Each element (or the element's car,
if it is a cons) is compared with key by evaluating (TEST (car elt) KEY).
If that is non-nil, the element matches;
then `assoc-default' returns the element's cdr, if it is a cons,
or DEFAULT if the element is not a cons.
If no element matches, the value is nil.
If TEST is omitted or nil, `equal' is used.
This part is incorrect when the element is not a cons: "by evaluating
(TEST (car elt) KEY)" (not to mention the fact that "elt" is
undefined/unexplained). It should say something like "by calling TEST
on KEY and the element (or the element's car, if it is a cons)."
(The Elisp manual explanation is correct.)
In GNU Emacs 23.0.92.1 (i386-mingw-nt5.1.2600)
of 2009-03-30 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'
- bug#3155: 23.0.92; doc string of assoc-default,
Drew Adams <=