Function: forge--format-boolean
forge--format-boolean is a byte-compiled function defined in
forge-topic.el.
Signature
(forge--format-boolean SLOT NAME &optional OBJ)
Source Code
;; Defined in ~/.emacs.d/elpa/forge-20260408.1922/forge-topic.el
(defun forge--format-boolean (slot name &optional obj)
;; Booleans are formatted differently in transients and headers.
;; Use this to format the (complete) description of suffix commands.
(let ((obj (or obj (forge-current-topic))))
(if (and obj (slot-exists-p obj slot))
(format (propertize "[%s]" 'face 'transient-delimiter)
(propertize name 'face
(if (eieio-oref obj slot)
'transient-value
'transient-inactive-value)))
(format "[%s]" name))))