aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emacs-lisp/subr-x.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/subr-x.el b/lisp/emacs-lisp/subr-x.el
index 9ff742c4331..37bcfc2003d 100644
--- a/lisp/emacs-lisp/subr-x.el
+++ b/lisp/emacs-lisp/subr-x.el
@@ -133,7 +133,7 @@ be of the form (VALUEFORM), which is evaluated and checked for
133nil; i.e. SYMBOL can be omitted if only the test result is of 133nil; i.e. SYMBOL can be omitted if only the test result is of
134interest." 134interest."
135 (declare (indent 2) 135 (declare (indent 2)
136 (debug ((&rest [&or symbolp (symbolp form) (sexp)]) 136 (debug ((&rest [&or symbolp (symbolp form) (form)])
137 form body))) 137 form body)))
138 (if varlist 138 (if varlist
139 `(let* ,(setq varlist (internal--build-bindings varlist)) 139 `(let* ,(setq varlist (internal--build-bindings varlist))
@@ -156,7 +156,9 @@ VARLIST is the same as in `if-let*'."
156 "Bind variables according to VARLIST and conditionally eval BODY. 156 "Bind variables according to VARLIST and conditionally eval BODY.
157Like `when-let*', except if BODY is empty and all the bindings 157Like `when-let*', except if BODY is empty and all the bindings
158are non-nil, then the result is non-nil." 158are non-nil, then the result is non-nil."
159 (declare (indent 1) (debug when-let*)) 159 (declare (indent 1)
160 (debug ((&rest [&or symbolp (symbolp form) (form)])
161 body)))
160 (let (res) 162 (let (res)
161 (if varlist 163 (if varlist
162 `(let* ,(setq varlist (internal--build-bindings varlist)) 164 `(let* ,(setq varlist (internal--build-bindings varlist))
@@ -168,7 +170,7 @@ are non-nil, then the result is non-nil."
168 "Bind variables according to SPEC and eval THEN or ELSE. 170 "Bind variables according to SPEC and eval THEN or ELSE.
169Like `if-let*' except SPEC can have the form (SYMBOL VALUEFORM)." 171Like `if-let*' except SPEC can have the form (SYMBOL VALUEFORM)."
170 (declare (indent 2) 172 (declare (indent 2)
171 (debug ([&or (&rest [&or symbolp (symbolp form) (sexp)]) 173 (debug ([&or (&rest [&or symbolp (symbolp form) (form)])
172 (symbolp form)] 174 (symbolp form)]
173 form body)) 175 form body))
174 (obsolete "use `if-let*' instead." "26.1")) 176 (obsolete "use `if-let*' instead." "26.1"))