Function: majutsu-template--resolve-self-node
majutsu-template--resolve-self-node is a natively compiled function
defined in majutsu-template.el.
Signature
(majutsu-template--resolve-self-node &optional DEPTH)
Documentation
Return the implicit self node at DEPTH.
DEPTH defaults to 0. Signal a user-error if DEPTH is invalid or no such
binding exists.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-template.el
(defun majutsu-template--resolve-self-node (&optional depth)
"Return the implicit `self' node at DEPTH.
DEPTH defaults to 0. Signal a `user-error' if DEPTH is invalid or no such
binding exists."
(setq depth (or depth 0))
(unless (and (integerp depth) (>= depth 0))
(user-error "majutsu-template: :self expects a non-negative integer depth, got %S"
depth))
(let ((binding (majutsu-template--self-binding-at-depth depth)))
(unless binding
(user-error "majutsu-template: :self depth %d is out of range (have %d self bindings)"
depth (length majutsu-template--self-stack)))
(or (majutsu-template--self-binding-node binding)
(user-error "majutsu-template: :self depth %d has no bound node" depth))))