Function: eca-chat--content-insertion-point
eca-chat--content-insertion-point is a natively compiled function
defined in eca-chat.el.
Signature
(eca-chat--content-insertion-point)
Documentation
Return the point where new chat content should be inserted.
When eca-chat--insertion-point-override is set, returns its position
(used to prepend older history above existing content); otherwise the
position just before the prompt area start. When the prompt area
overlay is missing (inconsistent buffer state, see #283), falls back
to point-max so callers never receive 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--content-insertion-point ()
"Return the point where new chat content should be inserted.
When `eca-chat--insertion-point-override' is set, returns its position
\(used to prepend older history above existing content); otherwise the
position just before the prompt area start. When the prompt area
overlay is missing (inconsistent buffer state, see #283), falls back
to `point-max' so callers never receive nil."
(or (and eca-chat--insertion-point-override
(marker-position eca-chat--insertion-point-override))
(-some-> (eca-chat--prompt-area-start-point) (1-))
(point-max)))