Function: eca-chat--question-button
eca-chat--question-button is a natively compiled function defined in
eca-chat.el.
Signature
(eca-chat--question-button TEXT ACTION)
Documentation
Return a button with TEXT calling ACTION.
ACTION settles a question, returning non-nil when it did. Point then moves on to the next pending question, so questions asked in parallel can be answered in a row.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defun eca-chat--question-button (text action)
"Return a button with TEXT calling ACTION.
ACTION settles a question, returning non-nil when it did. Point then
moves on to the next pending question, so questions asked in parallel
can be answered in a row."
(eca-buttonize eca-chat-mode-map
text
(lambda ()
(when (funcall action)
(eca-chat--goto-next-question)))))