Function: eca-chat--read-only-end-point

eca-chat--read-only-end-point is a natively compiled function defined in eca-chat.el.

Signature

(eca-chat--read-only-end-point)

Documentation

Return the position where the read-only region ends.

This is the start of the progress area, so the history, the separator and the task area are all read-only while the progress, context and prompt input stay editable. Falls back to the prompt area start when the progress overlay does not exist yet.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defun eca-chat--read-only-end-point ()
  "Return the position where the read-only region ends.
This is the start of the progress area, so the history, the
separator and the task area are all read-only while the progress,
context and prompt input stay editable.  Falls back to the prompt
area start when the progress overlay does not exist yet."
  (or (-some-> (eca-chat--prompt-progress-field-ov) (overlay-start))
      (eca-chat--prompt-area-start-point)))