diff options
| author | Michael Heerdegen | 2024-02-18 02:27:56 +0100 |
|---|---|---|
| committer | Eli Zaretskii | 2024-02-25 09:40:21 +0200 |
| commit | 67ba629a91aee3db39f3c81744e88c02ee710bdc (patch) | |
| tree | 304627db013b29557cb4e7459bc6a5204d329c5d | |
| parent | e680827e814e155cf79175d87ff7c6ee3a08b69a (diff) | |
| download | emacs-67ba629a91aee3db39f3c81744e88c02ee710bdc.tar.gz emacs-67ba629a91aee3db39f3c81744e88c02ee710bdc.zip | |
; * lisp/subr.el (if-let, and-let*): Tweak doc strings. (Bug#69108)
| -rw-r--r-- | lisp/subr.el | 5 |
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. |
| 2624 | Like `when-let*', except if BODY is empty and all the bindings | 2624 | Like `when-let*', except if BODY is empty and all the bindings |
| 2625 | are non-nil, then the result is non-nil." | 2625 | are 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. |
| 2636 | Evaluate each binding in turn, as in `let*', stopping if a | 2636 | Evaluate each binding in turn, as in `let*', stopping if a |
| 2637 | binding value is nil. If all are non-nil return the value of | 2637 | binding value is nil. If all are non-nil return the value of |
| 2638 | THEN, otherwise the last form in ELSE. | 2638 | THEN, otherwise the value of the last form in ELSE, or nil if |
| 2639 | there are none. | ||
| 2639 | 2640 | ||
| 2640 | Each element of SPEC is a list (SYMBOL VALUEFORM) that binds | 2641 | Each element of SPEC is a list (SYMBOL VALUEFORM) that binds |
| 2641 | SYMBOL to the value of VALUEFORM. An element can additionally be | 2642 | SYMBOL to the value of VALUEFORM. An element can additionally be |