Function: transient--do-push-button

transient--do-push-button is a byte-compiled function defined in transient.el.

Signature

(transient--do-push-button)

Documentation

Call the command represented by the activated button.

Use that command's pre-command to determine transient behavior.

Source Code

;; Defined in ~/.emacs.d/elpa/transient-20260414.1009/transient.el
(defun transient--do-push-button ()
  "Call the command represented by the activated button.
Use that command's pre-command to determine transient behavior."
  (with-selected-window transient--window
    (cond-let*
      ([pos (if (mouse-event-p last-command-event)
                (posn-point (event-start last-command-event))
              (point))]
       [obj (get-text-property pos 'button-data)]
       [_(cl-typep obj '(and transient-suffix (not transient-information)))]
       (setq this-command (oref obj command))
       (setq transient--current-suffix obj)
       (transient--call-pre-command))
      (transient--stay))))