Function: cond-let--while-let*
cond-let--while-let* is a macro defined in cond-let.el.
Signature
(cond-let--while-let* VARLIST [BODY...])
Documentation
Bind variables according to VARLIST, conditionally evaluate BODY, and repeat.
Each element of VARLIST is a list (SYMBOL VALUEFORM), which binds SYMBOL
to the value of VALUEFORM. Each VALUEFORM can refer to symbols already
bound by this VARLIST (as for let*).
If all VALUEFORMs yield non-nil, evaluate BODY forms sequentially, with VARLIST's bindings in effect, and repeat the loop.
If any VALUEFORM yields nil, evaluate neither the remaining VALUEFORMs nor the BODY forms, and instead return, always yielding nil.
BODY can be zero or more expressions.
Source Code
;; Defined in ~/.emacs.d/elpa/cond-let-20260201.1500/cond-let.el
;;; While
(defmacro cond-let--while-let* (varlist &rest body)
"Bind variables according to VARLIST, conditionally evaluate BODY, and repeat.
Each element of VARLIST is a list (SYMBOL VALUEFORM), which binds SYMBOL
to the value of VALUEFORM. Each VALUEFORM can refer to symbols already
bound by this VARLIST (as for `let*').
If all VALUEFORMs yield non-nil, evaluate BODY forms sequentially, with
VARLIST's bindings in effect, and repeat the loop.
If any VALUEFORM yields nil, evaluate neither the remaining VALUEFORMs
nor the BODY forms, and instead return, always yielding nil.
BODY can be zero or more expressions.
\(fn VARLIST [BODY...])"
(declare (indent 1) (debug cond-let--if-let*))
(pcase-let ((`(,varlist ,lastvar)
(cond-let--prepare-varlist varlist))
(tag (gensym ":while-let*")))
`(catch ',tag
(while t
(let* ,varlist
(if ,lastvar
,(macroexp-progn body)
(throw ',tag nil)))))))