aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Heerdegen2024-02-18 02:27:56 +0100
committerEli Zaretskii2024-02-25 09:40:21 +0200
commit67ba629a91aee3db39f3c81744e88c02ee710bdc (patch)
tree304627db013b29557cb4e7459bc6a5204d329c5d
parente680827e814e155cf79175d87ff7c6ee3a08b69a (diff)
downloademacs-67ba629a91aee3db39f3c81744e88c02ee710bdc.tar.gz
emacs-67ba629a91aee3db39f3c81744e88c02ee710bdc.zip
; * lisp/subr.el (if-let, and-let*): Tweak doc strings. (Bug#69108)
-rw-r--r--lisp/subr.el5
1 files 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
2622(defmacro and-let* (varlist &rest body) 2622(defmacro and-let* (varlist &rest body)
2623 "Bind variables according to VARLIST and conditionally evaluate BODY. 2623 "Bind variables according to VARLIST and conditionally evaluate BODY.
2624Like `when-let*', except if BODY is empty and all the bindings 2624Like `when-let*', except if BODY is empty and all the bindings
2625are non-nil, then the result is non-nil." 2625are non-nil, then the result is the value of the last binding."
2626 (declare (indent 1) (debug if-let*)) 2626 (declare (indent 1) (debug if-let*))
2627 (let (res) 2627 (let (res)
2628 (if varlist 2628 (if varlist
@@ -2635,7 +2635,8 @@ are non-nil, then the result is non-nil."
2635 "Bind variables according to SPEC and evaluate THEN or ELSE. 2635 "Bind variables according to SPEC and evaluate THEN or ELSE.
2636Evaluate each binding in turn, as in `let*', stopping if a 2636Evaluate each binding in turn, as in `let*', stopping if a
2637binding value is nil. If all are non-nil return the value of 2637binding value is nil. If all are non-nil return the value of
2638THEN, otherwise the last form in ELSE. 2638THEN, otherwise the value of the last form in ELSE, or nil if
2639there are none.
2639 2640
2640Each element of SPEC is a list (SYMBOL VALUEFORM) that binds 2641Each element of SPEC is a list (SYMBOL VALUEFORM) that binds
2641SYMBOL to the value of VALUEFORM. An element can additionally be 2642SYMBOL to the value of VALUEFORM. An element can additionally be