Function: eca-chat--set-question-prompt-prefix

eca-chat--set-question-prompt-prefix is a natively compiled function defined in eca-chat.el.

Signature

(eca-chat--set-question-prompt-prefix ACTIVE)

Documentation

Toggle the prompt prefix for question mode.

When ACTIVE is non-nil, show the question prefix; otherwise restore normal.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defun eca-chat--set-question-prompt-prefix (active)
  "Toggle the prompt prefix for question mode.
When ACTIVE is non-nil, show the question prefix; otherwise restore normal."
  (when-let* ((ov (eca-chat--prompt-field-ov)))
    (overlay-put ov 'before-string
                 (propertize (if active
                                 eca-chat-prompt-prefix-question
                               eca-chat-prompt-prefix)
                             'font-lock-face 'eca-chat-prompt-prefix-face))))