Commit 753bc4f6 authored by Chong Yidong's avatar Chong Yidong
Browse files

* subr.el (assoc-default): Doc fix.

parent c3c963a0
2009-04-29 Chong Yidong <cyd@stupidchicken.com>
* subr.el (assoc-default): Doc fix.
2009-04-29 Ulrich Mueller <ulm@gentoo.org>
 
* files.el (hack-local-variables-prop-line)
......
......@@ -371,11 +371,13 @@ argument VECP, this copies vectors as well as conses."
(defun assoc-default (key alist &optional test default)
"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.
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
calling TEST, with two arguments: (i) the element or its car,
and (ii) 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."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment