Function: gptel--update-status
gptel--update-status is a natively compiled function defined in
gptel.el.
Signature
(gptel--update-status MSG &optional FACE)
Documentation
Update status MSG with FACE.
Source Code
;; Defined in /nix/store/q3r7g81pvghw7a523kjk2k2zih3pfk8z-emacs-packages-deps/share/emacs/site-lisp/elpa/gptel-20261002.545/gptel.el
(defvar gptel--fsm-last) ;Defined further below
(defun gptel--update-status (msg &optional face)
"Update status MSG with FACE."
(when gptel-mode
(let* ((inspect (lambda (&rest _) (gptel--inspect-fsm)))
(button (propertize (buttonize msg inspect)
'mouse-face 'highlight)))
(when face (setq button (propertize button 'face face)))
(if gptel-use-header-line
(and (consp header-line-format) (setf (nth 1 header-line-format) button))
(if (equal msg " Ready")
(setq mode-line-process
`(:eval (concat " " (buttonize (gptel--model-name gptel-model)
,inspect))))
(setq mode-line-process button)
(message msg))))
(force-mode-line-update)))