Function: transient--maybe-set-value
transient--maybe-set-value is a byte-compiled function defined in
transient.el.
Signature
(transient--maybe-set-value EVENT)
Documentation
Maybe set the value, subject to EVENT and the remember-value slot.
Source Code
;; Defined in ~/.emacs.d/elpa/transient-20260414.1009/transient.el
(defun transient--maybe-set-value (event)
"Maybe set the value, subject to EVENT and the `remember-value' slot."
(let* ((event (if (and (eq event 'exit)
(memq this-command transient--quit-commands))
'quit
event))
(spec (oref transient--prefix remember-value))
(spec (cond ((listp spec) spec)
((memq spec '(export exit quit))
(list spec))
((boundp spec)
(symbol-value spec)))))
(and (memq event spec)
(prog1 t
(if (memq 'save spec)
(transient-save-value transient--prefix)
(transient-set-value transient--prefix))))))