Function: forge--topics-filter-status-command
forge--topics-filter-status-command is a byte-compiled function
defined in forge-topics.el.
Signature
(forge--topics-filter-status-command &rest SLOTS)
Documentation
Create a new object of class type
forge--topics-filter-status-command(var)/forge--topics-filter-status-command(fun).
Source Code
;; Defined in ~/.emacs.d/elpa/forge-20260408.1922/forge-topics.el
;;;; Status
(defclass forge--topics-filter-status-command (transient-suffix)
((status :initarg :status)
(definition
:initform (lambda ()
(interactive)
(let* ((want (oref (transient-suffix-object) status))
(spec forge--buffer-topics-spec)
(have (oref spec status))
(active (oref spec active)))
(cond (active
(oset spec active nil)
(oset spec status want))
((eq have want)
(oset spec status nil))
((oset spec status want))))
(forge-refresh-buffer)))
(description
:initform (lambda (suffix) (symbol-name (oref suffix status))))
(face
:initform (lambda (suffix)
(let ((want (oref suffix status))
(have (oref forge--buffer-topics-spec status))
(active (oref forge--buffer-topics-spec active)))
(cond ((and (not active)
(equal have want))
'forge-suffix-active)
((and (or active
(eq have 'inbox))
(memq want '(inbox unread pending)))
(if (eq have want)
'forge-suffix-active-and-implied
'forge-suffix-implied))))))))