Function: majutsu-template--call-with-lambda-capture

majutsu-template--call-with-lambda-capture is a natively compiled function defined in majutsu-template.el.

Signature

(majutsu-template--call-with-lambda-capture LAMBDA-NODE THUNK)

Documentation

Call THUNK in LAMBDA-NODE's captured lexical/self context.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-template.el
(defun majutsu-template--call-with-lambda-capture (lambda-node thunk)
  "Call THUNK in LAMBDA-NODE's captured lexical/self context."
  (let* ((props (majutsu-template-node-props lambda-node))
         (captured-bindings (plist-get props :captured-bindings))
         (captured-self-stack (plist-get props :captured-self-stack))
         (majutsu-template--binding-stack captured-bindings)
         (majutsu-template--self-stack captured-self-stack))
    (funcall thunk)))