Function: eca-chat-send-prompt-at-chat
eca-chat-send-prompt-at-chat is an interactive and natively compiled
function defined in eca-chat.el.
Signature
(eca-chat-send-prompt-at-chat)
Documentation
Send the prompt in chat if not empty.
Key Bindings
eca-chat-mode-map C-c C-<return>
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
;;;###autoload
(defun eca-chat-send-prompt-at-chat ()
"Send the prompt in chat if not empty."
(interactive)
(eca-chat--with-current-buffer (eca-chat--get-last-buffer (eca-session))
(let* ((session (eca-session))
(prompt (eca-chat--prompt-content)))
(when (and (not (string-empty-p prompt))
(not eca-chat--chat-loading))
(eca-chat--send-prompt session prompt)))))