Function: eca--property-run-bounds
eca--property-run-bounds is a natively compiled function defined in
eca-util.el.
Signature
(eca--property-run-bounds POS PROP)
Documentation
Return (START . END) of the run of text property PROP at POS, or nil.
The run is the text around POS whose PROP value is eq to the one
at POS, so two adjacent items propertized separately are two runs.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-util.el
(defun eca--property-run-bounds (pos prop)
"Return (START . END) of the run of text property PROP at POS, or nil.
The run is the text around POS whose PROP value is `eq' to the one
at POS, so two adjacent items propertized separately are two runs."
(when-let* ((value (and pos (get-text-property pos prop))))
(cons (if (and (> pos (point-min))
(eq value (get-text-property (1- pos) prop)))
(previous-single-property-change pos prop nil (point-min))
pos)
(next-single-property-change pos prop nil (point-max)))))