Function: cl-with-gensyms
cl-with-gensyms is an autoloaded macro defined in cl-macs.el.gz.
Signature
(cl-with-gensyms NAMES &rest BODY)
Documentation
Bind each of NAMES to an uninterned symbol and evaluate BODY.
Probably introduced at or before Emacs version 29.1.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/cl-macs.el.gz
;;;###autoload
(defmacro cl-with-gensyms (names &rest body)
"Bind each of NAMES to an uninterned symbol and evaluate BODY."
(declare (debug (sexp body)) (indent 1))
`(let ,(cl-loop for name in names collect
`(,name (gensym (symbol-name ',name))))
,@body))