Function: eca-chat--question-bounds

eca-chat--question-bounds is a natively compiled function defined in eca-chat.el.

Signature

(eca-chat--question-bounds QUESTION)

Documentation

Return (START . END) of the block of QUESTION in the chat, or nil.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defun eca-chat--question-bounds (question)
  "Return (START . END) of the block of QUESTION in the chat, or nil."
  (when-let* ((ov (if-let* ((id (plist-get question :tool-call-id)))
                      (eca-chat--get-expandable-content id)
                    (plist-get question :block-ov)))
              ((overlay-buffer ov)))
    (cons (overlay-start ov)
          (overlay-end (or (overlay-get ov 'eca-chat--expandable-content-ov-content)
                           ov)))))