Function: tempel--filter-templates

tempel--filter-templates is a natively compiled function defined in tempel.el.

Signature

(tempel--filter-templates TEMPLATES)

Documentation

Filter templates from TEMPLATES relevant to the current buffer.

TEMPLATES must be a list of elements of the form (MODE COND . TEMPLATES).

Source Code

;; Defined in /nix/store/b3ibjbs2i12kyhwapibfx6i39f025i85-emacs-packages-deps/share/emacs/site-lisp/elpa/tempel-20260705.1258/tempel.el
(defun tempel--filter-templates (templates)
  "Filter templates from TEMPLATES relevant to the current buffer.
TEMPLATES must be a list of elements of the form (MODE COND . TEMPLATES)."
  (cl-loop for (mode cond . mode-templates) in templates
           if (tempel--condition-p mode cond)
           append mode-templates))