Function: transient-args
transient-args is a byte-compiled function defined in transient.el.
Signature
(transient-args PREFIX)
Documentation
Return the value of the transient prefix command PREFIX.
If the current command was invoked from the transient prefix command PREFIX, then return the active infix arguments. If the current command was not invoked from PREFIX, then return the set, saved or default value for PREFIX.
PREFIX may also be a list of prefixes. If no prefix is active, the fallback value of the first of these prefixes is used.
The generic function transient-prefix-value is used to determine the
returned value.
This function is intended to be used by suffix commands, whether they
are invoked from a menu or not. It is not intended to be used when
setting up a menu and its suffixes, in which case transient-get-value
should be used.
Source Code
;; Defined in ~/.emacs.d/elpa/transient-20260414.1009/transient.el
;;;; Get
(defun transient-args (prefix)
"Return the value of the transient prefix command PREFIX.
If the current command was invoked from the transient prefix command
PREFIX, then return the active infix arguments. If the current command
was not invoked from PREFIX, then return the set, saved or default value
for PREFIX.
PREFIX may also be a list of prefixes. If no prefix is active, the
fallback value of the first of these prefixes is used.
The generic function `transient-prefix-value' is used to determine the
returned value.
This function is intended to be used by suffix commands, whether they
are invoked from a menu or not. It is not intended to be used when
setting up a menu and its suffixes, in which case `transient-get-value'
should be used."
(when (listp prefix)
(setq prefix (car (or (memq transient-current-command prefix) prefix))))
(if-let ((obj (get prefix 'transient--prefix)))
;; This OBJ is only used for dispatch purposes; see below.
(transient-prefix-value obj)
(error "Not a transient prefix: %s" prefix)))