Function: transient-remove-suffix
transient-remove-suffix is an autoloaded and byte-compiled function
defined in transient.el.
Signature
(transient-remove-suffix PREFIX LOC)
Documentation
Remove the suffix or group at LOC in PREFIX.
PREFIX is a prefix command, a symbol.
LOC is a command, a key vector, a key description (a string
as returned by key-description), or a coordination list
(whose last element may also be a command or key).
See info node (transient)Modifying Existing Transients.
Source Code
;; Defined in ~/.emacs.d/elpa/transient-20260414.1009/transient.el
;;;###autoload
(defun transient-remove-suffix (prefix loc)
"Remove the suffix or group at LOC in PREFIX.
PREFIX is a prefix command, a symbol.
LOC is a command, a key vector, a key description (a string
as returned by `key-description'), or a coordination list
(whose last element may also be a command or key).
See info node `(transient)Modifying Existing Transients'."
(declare (indent defun))
(pcase-let ((`(,suffix ,group) (transient--locate-child prefix loc)))
(when suffix
(aset group 2 (delq suffix (aref group 2))))))