Function: eca-chat-compose-send
eca-chat-compose-send is an interactive and natively compiled function
defined in eca-chat-compose.el.
Signature
(eca-chat-compose-send)
Documentation
Send the composed prompt to the captured target chat.
Kills the compose buffer afterwards.
Key Bindings
eca-chat-compose-mode-map C-c C-c
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat-compose.el
(defun eca-chat-compose-send ()
"Send the composed prompt to the captured target chat.
Kills the compose buffer afterwards."
(interactive)
(let ((text (string-trim
(buffer-substring-no-properties (point-min) (point-max))))
(target eca-chat-compose--target-buffer)
(session (eca-session)))
(eca-assert-session-running session)
(when (string-empty-p text)
(user-error "Nothing to send"))
(unless (buffer-live-p target)
(user-error "The target chat buffer no longer exists"))
(setf (eca--session-last-chat-buffer session) target)
(eca-chat--with-current-buffer target
(eca-chat--send-prompt session text))
(quit-window t)
(eca-info "Prompt sent to %s" (buffer-name target))))