Function: tempel--find
tempel--find is a natively compiled function defined in tempel.el.
Signature
(tempel--find DIR)
Documentation
Find next overlay in DIR.
Source Code
;; Defined in /nix/store/b3ibjbs2i12kyhwapibfx6i39f025i85-emacs-packages-deps/share/emacs/site-lisp/elpa/tempel-20260705.1258/tempel.el
(defun tempel--find (dir)
"Find next overlay in DIR."
(let ((pt (point)) next stop)
(dolist (st tempel--active next)
(dolist (ov (car st))
(unless (overlay-get ov 'tempel--form)
(setq stop (if (or (< dir 0)
(eq 'start (overlay-get ov 'tempel--default)))
(overlay-start ov)
(overlay-end ov)))
(cond
((and (> dir 0) (> stop pt))
(setq next (min (or next (point-max)) stop)))
((and (< dir 0) (< stop pt))
(setq next (max (or next -1) stop)))))))))