aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/subr.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index 44199a50754..54bee8a809f 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -752,9 +752,9 @@ Elements of ALIST that are not conses are ignored."
752 alist) 752 alist)
753 753
754(defun alist-get (key alist &optional default remove testfn) 754(defun alist-get (key alist &optional default remove testfn)
755 "Return the value associated with KEY in ALIST. 755 "Find the first element of ALIST whose `car' equals KEY and return its `cdr'.
756If KEY is not found in ALIST, return DEFAULT. 756If KEY is not found in ALIST, return DEFAULT.
757Use TESTFN to lookup in the alist if non-nil. Otherwise, use `assq'. 757Equality with KEY is tested by TESTFN, defaulting to `eq'.
758 758
759This is a generalized variable suitable for use with `setf'. 759This is a generalized variable suitable for use with `setf'.
760When using it to set a value, optional argument REMOVE non-nil 760When using it to set a value, optional argument REMOVE non-nil