Function: tempel--form

tempel--form is a natively compiled function defined in tempel.el.

Signature

(tempel--form FORM INITIAL)

Documentation

Add new template field evaluating FORM with INITIAL text.

Return the added field.

Source Code

;; Defined in /nix/store/b3ibjbs2i12kyhwapibfx6i39f025i85-emacs-packages-deps/share/emacs/site-lisp/elpa/tempel-20260705.1258/tempel.el
(defun tempel--form (form initial)
  "Add new template field evaluating FORM with INITIAL text.
Return the added field."
  (insert initial)
  (let ((ov (make-overlay (- (point) (length initial)) (point) nil t)))
    (overlay-put ov 'face 'tempel-form)
    (overlay-put ov 'tempel--form form)
    (push ov (cdaar tempel--active))
    ov))