From: Lars Ingebrigtsen Date: Wed, 7 Oct 2020 02:50:52 +0000 (+0200) Subject: alist-get doc string further clarification X-Git-Tag: emacs-28.0.90~5723 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cc70a7b7a823fa3c886bca1374bafdfb2662a952;p=emacs.git alist-get doc string further clarification * lisp/subr.el (alist-get): Mention generalized variables again for easier cross-referencing (bug#43836). --- diff --git a/lisp/subr.el b/lisp/subr.el index a56dc35ab62..777ef103cf5 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -832,10 +832,11 @@ Elements of ALIST that are not conses are ignored." If KEY is not found in ALIST, return DEFAULT. Equality with KEY is tested by TESTFN, defaulting to `eq'. -You can use `alist-get' in PLACE expressions. This will modify -an existing association (more precisely, the first one if -multiple exist), or add a new element to the beginning of ALIST, -destructively modifying the list stored in ALIST. +You can use `alist-get' in \"place expressions\"; i.e., as a +generalized variable. Doing this will modify an existing +association (more precisely, the first one if multiple exist), or +add a new element to the beginning of ALIST, destructively +modifying the list stored in ALIST. Example: