[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 67ba629a91a 2/2: ; * lisp/subr.el (if-let, and-let*): Tweak doc s
From: |
Eli Zaretskii |
Subject: |
master 67ba629a91a 2/2: ; * lisp/subr.el (if-let, and-let*): Tweak doc strings. (Bug#69108) |
Date: |
Sun, 25 Feb 2024 02:42:43 -0500 (EST) |
branch: master
commit 67ba629a91aee3db39f3c81744e88c02ee710bdc
Author: Michael Heerdegen <michael_heerdegen@web.de>
Commit: Eli Zaretskii <eliz@gnu.org>
; * lisp/subr.el (if-let, and-let*): Tweak doc strings. (Bug#69108)
---
lisp/subr.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lisp/subr.el b/lisp/subr.el
index 301e2e42566..e2279170297 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -2622,7 +2622,7 @@ This is like `when-let' but doesn't handle a VARLIST of
the form
(defmacro and-let* (varlist &rest body)
"Bind variables according to VARLIST and conditionally evaluate BODY.
Like `when-let*', except if BODY is empty and all the bindings
-are non-nil, then the result is non-nil."
+are non-nil, then the result is the value of the last binding."
(declare (indent 1) (debug if-let*))
(let (res)
(if varlist
@@ -2635,7 +2635,8 @@ are non-nil, then the result is non-nil."
"Bind variables according to SPEC and evaluate THEN or ELSE.
Evaluate each binding in turn, as in `let*', stopping if a
binding value is nil. If all are non-nil return the value of
-THEN, otherwise the last form in ELSE.
+THEN, otherwise the value of the last form in ELSE, or nil if
+there are none.
Each element of SPEC is a list (SYMBOL VALUEFORM) that binds
SYMBOL to the value of VALUEFORM. An element can additionally be