Variable: eca-chat-expandable--id->ov
eca-chat-expandable--id->ov is a buffer-local variable defined in
eca-chat-expandable.el.
Documentation
Per-buffer map from expandable block ID to its label overlay.
Maintained by eca-chat--insert-expandable-block (puthash) and
eca-chat--remove-expandable-content / eca-chat--destroy-nested-blocks
(remhash). Accessed by eca-chat--get-expandable-content to avoid
the previous linear (overlays-in (point-min) (point-max)) scan,
which scaled with chat length.
Stale entries (e.g. an overlay deleted by a path that did not
update the map) are tolerated: lookups validate the hit's
overlay-buffer / id and fall back to the linear scan plus a
refill when the cache misses or is stale.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat-expandable.el
;;;; State
(defvar-local eca-chat-expandable--id->ov (make-hash-table :test 'equal)
"Per-buffer map from expandable block ID to its label overlay.
Maintained by `eca-chat--insert-expandable-block' (puthash) and
`eca-chat--remove-expandable-content' / `eca-chat--destroy-nested-blocks'
\(remhash). Accessed by `eca-chat--get-expandable-content' to avoid
the previous linear `(overlays-in (point-min) (point-max))' scan,
which scaled with chat length.
Stale entries (e.g. an overlay deleted by a path that did not
update the map) are tolerated: lookups validate the hit's
`overlay-buffer' / id and fall back to the linear scan plus a
refill when the cache misses or is stale.")