Function: hyrolo--cache-initialize
hyrolo--cache-initialize is a byte-compiled function defined in
hyrolo.el.
Signature
(hyrolo--cache-initialize)
Documentation
Init cache hash table of (major-mode-name . loc-seq-number) key value pairs.
Call whenever hyrolo-display-buffer is changed.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hyrolo.el
(defun hyrolo--cache-initialize ()
"Init cache hash table of (major-mode-name . loc-seq-number) key value pairs.
Call whenever `hyrolo-display-buffer' is changed."
(with-current-buffer hyrolo-display-buffer
(setq-local hyrolo--cache-major-mode-to-index-hasht
(if (hash-table-p hyrolo--cache-major-mode-to-index-hasht)
(clrhash hyrolo--cache-major-mode-to-index-hasht)
(make-hash-table))
hyrolo--cache-index-to-major-mode-hasht
(if (hash-table-p hyrolo--cache-index-to-major-mode-hasht)
(clrhash hyrolo--cache-index-to-major-mode-hasht)
(make-hash-table))
;; Don't use '(1) on the next line or the code will not initialize properly
hyrolo--cache-loc-match-bounds (list 1)
hyrolo--cache-major-mode-indexes (list 1)
hyrolo--cache-major-mode-index 1)))