Function: hyrolo-cache-location-start-and-end
hyrolo-cache-location-start-and-end is a byte-compiled function
defined in hyrolo.el.
Signature
(hyrolo-cache-location-start-and-end)
Documentation
Return a list of the (start end) of location matches that point is within.
Assume point is in the HyRolo display matches buffer.
Both positions may be nil if there are no matches yet found.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hyrolo.el
(defun hyrolo-cache-location-start-and-end ()
"Return a list of the (start end) of location matches that point is within.
Assume point is in the HyRolo display matches buffer.
Both positions may be nil if there are no matches yet found."
(let ((end-seq-pos (or (seq-position hyrolo--cache-loc-match-bounds (point) (lambda (e pos) (< pos e)))
;; At (point-max), (= pos e) for final bound in cache
(when (>= (point) (car (last hyrolo--cache-loc-match-bounds)))
(1- (length hyrolo--cache-loc-match-bounds))))))
(if end-seq-pos
(list (nth (1- end-seq-pos) hyrolo--cache-loc-match-bounds)
(nth end-seq-pos hyrolo--cache-loc-match-bounds))
(list nil nil))))