Function: transient-prompt
transient-prompt is a byte-compiled function defined in transient.el.
Signature
(transient-prompt OBJ)
Documentation
Return the prompt to be used to read infix object OBJ's value.
Implementations
((obj transient-lisp-variable)) in `transient.el'.
Undocumented
((obj transient-infix)) in `transient.el'.
Return the prompt to be used to read infix object OBJ's value.
This implementation should be suitable for almost all infix commands.
If the value of OBJ's `prompt' slot is non-nil, then it must be a string or a function. If it is a string, then use that. If it is a function, then call that with OBJ as the only argument. That function must return a string, which is then used as the prompt.
Otherwise, if the value of either the `argument' or `variable' slot of OBJ is a string, then base the prompt on that (preferring the former), appending either "=" (if it appears to be a command-line option) or ": ".
Finally fall through to using "(BUG: no prompt): " as the prompt.
Source Code
;; Defined in ~/.emacs.d/elpa/transient-20260414.1009/transient.el
;;;; Prompt
(cl-defgeneric transient-prompt (obj)
"Return the prompt to be used to read infix object OBJ's value.")