Function: cl-letf*

cl-letf* is an autoloaded macro defined in cl-macs.el.gz.

Signature

(cl-letf* BINDINGS &rest BODY)

Documentation

Temporarily bind to PLACEs.

Like cl-letf but where the bindings are performed one at a time, rather than all at the end (i.e. like let* rather than like let).

View in manual

Aliases

letf* (obsolete since 27.1)

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/cl-macs.el.gz
;;;###autoload
(defmacro cl-letf* (bindings &rest body)
  "Temporarily bind to PLACEs.
Like `cl-letf' but where the bindings are performed one at a time,
rather than all at the end (i.e. like `let*' rather than like `let')."
  (declare (indent 1) (debug cl-letf))
  (dolist (binding (reverse bindings))
    (setq body (list `(cl-letf (,binding) ,@body))))
  (macroexp-progn body))