This generic function sets the initial value of the object OBJ. Methods exist for both prefix and suffix objects.
For transient-argument
objects this function handles setting the
value by itself.
For other transient-suffix
objects (including transient-infix
objects), this calls transient-default-value
and uses the value
returned by that, unless it is the special value eieio--unbound
,
which indicates that there is no default value. Since that is what
the default method for transient-suffix
objects does, both of these
functions effectively are noops for these classes.
If you implement a class that derives from transient-infix
directly,
then you must implement a dedicated method for this function and/or
transient-default-value
.
This generic function returns the default value of the object OBJ. Methods exist for both prefix and suffix objects.
This generic function determines the new value of the infix object OBJ.
This function merely determines the value; transient-infix-set
is
used to actually store the new value in the object.
For most infix classes this is done by reading a value from the
user using the reader specified by the reader
slot (using the
transient-infix-value
method described below).
For some infix classes the value is changed without reading anything in the minibuffer, i.e., the mere act of invoking the infix command determines what the new value should be, based on the previous value.
This generic function returns the prompt to be used to read infix object OBJ’s value.
This generic function sets the value of infix object OBJ to VALUE.
This generic function returns the value of the suffix object OBJ.
This function is called by transient-args
(which see), meaning this
function is how the value of a transient is determined so that the
invoked suffix command can use it.
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
.
This generic function sets the scope of the object OBJ. Methods exist for both prefix and suffix objects.
The scope is actually a property of the transient prefix, not of
individual suffixes. However it is possible to invoke a suffix
command directly instead of from a transient. In that case, if
the suffix expects a scope, then it has to determine that itself
and store it in its scope
slot.
This function is called for all prefix and suffix commands, but unless a concrete method is implemented, this falls through to the default implementation, which is a noop.