Function: transient--get-pre-command
transient--get-pre-command is a byte-compiled function defined in
transient.el.
Signature
(transient--get-pre-command &optional CMD KEY ENFORCE-TYPE)
Source Code
;; Defined in ~/.emacs.d/elpa/transient-20260414.1009/transient.el
(defun transient--get-pre-command (&optional cmd key enforce-type)
(or (and (not (eq enforce-type 'non-suffix))
(symbolp cmd)
(or (and key
(let ((def (lookup-key transient--predicate-map
(vconcat key (list cmd)))))
(and (symbolp def) def)))
(lookup-key transient--predicate-map (vector cmd))))
(and (not (eq enforce-type 'suffix))
(if (equal (event-basic-type last-command-event) 'mouse-movement)
;; `this-command' is most likely the anonymous
;; drag command defined inside `mouse-drag-track'.
'transient--do-mouse
(transient--resolve-pre-command
(oref transient--prefix transient-non-suffix)
t)))))