Prefix Slots
show-help,man-pageorinfo-manualcan be used to specify the documentation for the prefix and its suffixes. The commandtransient-helpuses the methodtransient-show-help(which see) to lookup and use these values.history-keyIf multiple prefix commands should share a single value, then this slot has to be set to the same value for all of them. You probably don’t want that.transient-suffixandtransient-non-suffixplay a part when determining whether the currently active transient prefix command remains active/transient when a suffix or arbitrary non-suffix command is invoked. See Transient State.refresh-suffixesNormally suffix objects and keymaps are only setup once, when the prefix is invoked. Setting this tot, causes them to be recreated after every command. This is useful when using:if...predicates, and those need to be rerun for some reason. Doing this is somewhat costly, and there is a risk of losing state, so this is disabled by default and still considered experimental.incompatibleA list of lists. Each sub-list specifies a set of mutually exclusive arguments. Enabling one of these arguments causes the others to be disabled. An argument may appear in multiple sub-lists. Arguments must me given in the same form as used in theargumentorargument-formatslot of the respective suffix objects, usually something like--switchor--option=%s. For options andtransient-switchessuffixes it is also possible to match against a specific value, as returned bytransient-infix-value, for example,--option=one.scopeFor some transients it might be necessary to have a sort of secondary value, called a “scope”. Seetransient-define-prefix.
Internal Prefix Slots
These slots are mostly intended for internal use. They should not be set in calls to transient-define-prefix.
prototypeWhen a transient prefix command is invoked, then a clone of that object is stored in the global variabletransient--prefixand the prototype is stored in the clone’sprototypeslot.commandThe command, a symbol. Each transient prefix command consists of a command, which is stored in a symbol’s function slot and an object, which is stored in thetransient--prefixproperty of the same symbol.levelThe level of the prefix commands. The suffix commands whose layer is equal or lower are displayed. see Enabling and Disabling Suffixes.valueThe likely outdated value of the prefix. Instead of accessing this slot directly you should use the functiontransient-get-value, which is guaranteed to return the up-to-date value.historyandhistory-posare used to keep track of historic values. Unless you implement your owntransient-infix-readmethod you should not have to deal with these slots.