Function: eca-chat--buffer-context
eca-chat--buffer-context is a natively compiled function defined in
eca-chat-context.el.
Signature
(eca-chat--buffer-context BUFFER &optional LINES-RANGE)
Documentation
Return the text context plist for BUFFER.
When LINES-RANGE is non-nil, a (:start N :end M) plist, restrict the context to those lines of BUFFER.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat-context.el
(defun eca-chat--buffer-context (buffer &optional lines-range)
"Return the text context plist for BUFFER.
When LINES-RANGE is non-nil, a (:start N :end M) plist, restrict
the context to those lines of BUFFER."
(append (list :type "text" :label (buffer-name buffer))
(when lines-range (list :linesRange lines-range))))