Function: tempel--exit
tempel--exit is a natively compiled function defined in tempel.el.
Signature
(tempel--exit TEMPLATES REGION NAME STATUS)
Documentation
Exit function for completion for template NAME and STATUS.
TEMPLATES is the list of templates. REGION are the current region bounds.
Source Code
;; Defined in /nix/store/b3ibjbs2i12kyhwapibfx6i39f025i85-emacs-packages-deps/share/emacs/site-lisp/elpa/tempel-20260705.1258/tempel.el
(defun tempel--exit (templates region name status)
"Exit function for completion for template NAME and STATUS.
TEMPLATES is the list of templates.
REGION are the current region bounds."
(when-let* (((not (eq status 'exact)))
(sym (intern-soft name))
(template (alist-get sym templates)))
(tempel--delete-word name)
(tempel--insert template region)))