Function: eca-chat--transient-segment-loading
eca-chat--transient-segment-loading is a natively compiled function
defined in eca-chat.el.
Signature
(eca-chat--transient-segment-loading)
Documentation
Return the loading/stop segment, or nil when idle.
Also returned while a question is pending so the prompt can be stopped even if the chat reports idle awaiting the answer.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defun eca-chat--transient-segment-loading ()
"Return the loading/stop segment, or nil when idle.
Also returned while a question is pending so the prompt can be
stopped even if the chat reports idle awaiting the answer."
(when (or (eq eca-chat--chat-loading t)
eca-chat--pending-questions)
(concat (propertize eca-chat-prompt-prefix-loading
'font-lock-face 'default)
(eca-buttonize
eca-chat-mode-map
(propertize "stop" 'font-lock-face 'eca-chat-prompt-stop-face)
(lambda () (eca-chat--stop-prompt (eca-session))))
"\n")))