[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master cc70a7b: alist-get doc string further clarification
From: |
Lars Ingebrigtsen |
Subject: |
master cc70a7b: alist-get doc string further clarification |
Date: |
Tue, 6 Oct 2020 22:51:01 -0400 (EDT) |
branch: master
commit cc70a7b7a823fa3c886bca1374bafdfb2662a952
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
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 a56dc35..777ef10 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:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master cc70a7b: alist-get doc string further clarification,
Lars Ingebrigtsen <=