Function: cl-with-gensyms

cl-with-gensyms is a macro defined in compat-29.el.

Signature

(cl-with-gensyms NAMES &rest BODY)

Documentation

[Compatibility macro for cl-with-gensyms, defined in Emacs 29.1. See (compat)
Emacs 29.1' for more details.]

Bind each of NAMES to an uninterned symbol and evaluate BODY.

Source Code

;; Defined in ~/.emacs.d/elpa/compat-30.1.0.1/compat-29.el
;;;; Defined in cl-macs.el

(compat-defmacro cl-with-gensyms (names &rest body) ;; <compat-tests:cl-with-gensyms>
  "Bind each of NAMES to an uninterned symbol and evaluate BODY."
  ;; No :feature since macro is autoloaded
  (declare (debug (sexp body)) (indent 1))
  `(let ,(cl-loop for name in names collect
                  `(,name (gensym (symbol-name ',name))))
     ,@body))