Function: transient-infix-value
transient-infix-value is a byte-compiled function defined in
transient.el.
Signature
(transient-infix-value OBJ)
Documentation
Return the value of the suffix object OBJ.
By default this function is involved when determining the prefix's
overall value, returned by transient-args (which see), so that
the invoked suffix command can use that.
Currently most values are strings, but that is not set in stone. Nil is not a value, it means "no value".
Usually only infixes have a value, but see the method for
transient-suffix(var)/transient-suffix(fun).
Implementations
(transient-infix-value (OBJ cider-log--lisp-variable)) in `cider-log.el'.
Return the value of the suffix object OBJ.
(transient-infix-value (OBJ transient-cons-option)) in `transient.el'.
Return ARGUMENT and VALUE as a cons-cell or nil if the latter is nil.
(transient-infix-value (_ transient-variable)) in `transient.el'.
Return nil, which means "no value".
Setting the value of a variable is done by, well, setting the value of the variable. I.e., this is a side-effect and does not contribute to the value of the transient.
(transient-infix-value (OBJ transient-option)) in `transient.el'.
Return ARGUMENT and VALUE as a unit or nil if the latter is nil.
(transient-infix-value (OBJ transient-infix)) in `transient.el'.
Return the value of OBJ's `value' slot.
(transient-infix-value (_ transient-suffix)) in `transient.el'.
Return nil, which means "no value".
Infix arguments contribute the transient's value while suffix commands consume it. This function is called for suffixes anyway because a command that both contributes to the transient's value and also consumes it is not completely unconceivable.
If you define such a command, then you must define a derived class and implement this function because this default method does nothing.
Source Code
;; Defined in ~/.emacs.d/elpa/transient-20260414.1009/transient.el
(cl-defgeneric transient-infix-value (obj)
"Return the value of the suffix object OBJ.
By default this function is involved when determining the prefix's
overall value, returned by `transient-args' (which see), so that
the invoked suffix command can use that.
Currently most values are strings, but that is not set in stone.
Nil is not a value, it means \"no value\".
Usually only infixes have a value, but see the method for
`transient-suffix'.")