Function: eca-chat--refresh-response-copy-scope
eca-chat--refresh-response-copy-scope is a natively compiled function
defined in eca-chat.el.
Signature
(eca-chat--refresh-response-copy-scope &optional FROM TO)
Documentation
Refresh the copy scope for assistant response between FROM and TO.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defun eca-chat--refresh-response-copy-scope (&optional from to)
"Refresh the copy scope for assistant response between FROM and TO."
(let* ((start (or from eca-chat--last-response-copy-start))
(end (or to (eca-chat--content-insertion-point))))
(when (and start end (< start end)
(not (string-empty-p
(string-trim
(buffer-substring-no-properties start end)))))
(remove-overlays start end 'eca-chat--response-copy-scope t)
(eca-chat--make-copy-scope
start end 'response 'eca-chat--response-copy-scope))))