From cc70a7b7a823fa3c886bca1374bafdfb2662a952 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Wed, 7 Oct 2020 04:50:52 +0200 Subject: [PATCH] alist-get doc string further clarification * lisp/subr.el (alist-get): Mention generalized variables again for easier cross-referencing (bug#43836). --- lisp/subr.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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: -- 2.39.5