Function: forge-topic-toggle-saved
forge-topic-toggle-saved is an interactive and natively compiled
function defined in forge-topic.el.
Signature
(forge-topic-toggle-saved)
Documentation
Toggle whether this topic is marked as saved.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/923zwib42c4qw6x4xps0cv1wi8qcd6lp-emacs-packages-deps/share/emacs/site-lisp/elpa/forge-20261005.753/forge-topic.el
(transient-define-suffix forge-topic-toggle-saved ()
"Toggle whether this topic is marked as saved."
:class 'forge--topic-set-slot-command :slot 'saved-p
:inapt-if-not #'forge-current-topic
:description (##forge--format-boolean 'saved-p "saved")
;; Set only locally because Github's API does not support this.
(interactive)
(let ((topic (forge-current-topic t)))
(oset topic saved-p (not (oref topic saved-p))))
(forge-refresh-buffer))