Function: tempel--condition-p
tempel--condition-p is a natively compiled function defined in
tempel.el.
Signature
(tempel--condition-p MODE COND)
Documentation
Return non-nil if MODE matches and COND is satisfied.
Source Code
;; Defined in /nix/store/b3ibjbs2i12kyhwapibfx6i39f025i85-emacs-packages-deps/share/emacs/site-lisp/elpa/tempel-20260705.1258/tempel.el
(defun tempel--condition-p (mode cond)
"Return non-nil if MODE matches and COND is satisfied."
(and
(or (eq mode #'fundamental-mode)
(derived-mode-p mode)
(when-let* ((remap (alist-get mode major-mode-remap-alist)))
(derived-mode-p remap)))
(or tempel--ignore-condition
(eq cond t)
(save-excursion
(save-restriction
(save-match-data
(eval cond 'lexical)))))))