Function: transient--get-wrapped-value
transient--get-wrapped-value is a byte-compiled function defined in
transient.el.
Signature
(transient--get-wrapped-value OBJ)
Documentation
Return a list of the value(s) of suffix object OBJ.
Internally a suffix only ever has one value, stored in its value
slot, but callers of transient-args wish to treat the values of
certain suffixes as multiple values. That translation is handled
here. The object's multi-value slot specifies whether and how
to interpret the value as multiple values.
Source Code
;; Defined in ~/.emacs.d/elpa/transient-20260414.1009/transient.el
(defun transient--get-wrapped-value (obj)
"Return a list of the value(s) of suffix object OBJ.
Internally a suffix only ever has one value, stored in its `value'
slot, but callers of `transient-args' wish to treat the values of
certain suffixes as multiple values. That translation is handled
here. The object's `multi-value' slot specifies whether and how
to interpret the `value' as multiple values."
(and-let ((value (transient-infix-value obj)))
(pcase-exhaustive (and (slot-exists-p obj 'multi-value)
(oref obj multi-value))
('nil (list value))
((or 't 'rest) (list value))
('repeat value))))