Function: hyrolo-cache-get-major-mode-from-pos
hyrolo-cache-get-major-mode-from-pos is a byte-compiled function
defined in hyrolo.el.
Signature
(hyrolo-cache-get-major-mode-from-pos POS)
Documentation
Get the major-mode associated with POS in the current HyRolo display buffer.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hyrolo.el
(defun hyrolo-cache-get-major-mode-from-pos (pos)
"Get the `major-mode' associated with POS in the current HyRolo display buffer."
(hyrolo--cache-get-major-mode-from-index
(nth (or (seq-position hyrolo--cache-loc-match-bounds pos (lambda (e pos) (<= pos e)))
(error "(hyrolo-cache-get-major-mode): pos=%d > max display buffer pos=%d"
pos (car hyrolo--cache-loc-match-bounds)))
hyrolo--cache-major-mode-indexes)))