Function: tempel--prefix-bounds
tempel--prefix-bounds is a natively compiled function defined in
tempel.el.
Signature
(tempel--prefix-bounds TEMPLATES)
Documentation
Return prefix bounds given TEMPLATES list.
Source Code
;; Defined in /nix/store/b3ibjbs2i12kyhwapibfx6i39f025i85-emacs-packages-deps/share/emacs/site-lisp/elpa/tempel-20260705.1258/tempel.el
(defun tempel--prefix-bounds (templates)
"Return prefix bounds given TEMPLATES list."
(let ((beg (save-excursion (skip-chars-backward "^[:space:]") (point)))
(end (point)))
(if (and (/= beg end)
;; Check if prefix matches a template name.
(try-completion (buffer-substring-no-properties beg end)
templates))
(cons beg end)
;; Fallback to `bounds-of-thing-at-point'.
(bounds-of-thing-at-point 'symbol))))