Function: tempel--info-buffer

tempel--info-buffer is a natively compiled function defined in tempel.el.

Signature

(tempel--info-buffer TEMPLATES FUN NAME)

Documentation

Create info buffer for template NAME.

FUN inserts the info into the buffer. TEMPLATES is the list of templates.

Source Code

;; Defined in /nix/store/b3ibjbs2i12kyhwapibfx6i39f025i85-emacs-packages-deps/share/emacs/site-lisp/elpa/tempel-20260705.1258/tempel.el
(defun tempel--info-buffer (templates fun name)
  "Create info buffer for template NAME.
FUN inserts the info into the buffer.
TEMPLATES is the list of templates."
  (when-let* ((name (intern-soft name))
              (template (alist-get name templates)))
    (with-current-buffer (get-buffer-create " *tempel-info*")
      (setq buffer-read-only t)
      (let ((inhibit-read-only t))
        (erase-buffer)
        (funcall fun template)))))