Function: transient--do-push-button

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

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 /usr/src/emacs/lisp/transient.el.gz
(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*
      ((bind-and*
         (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))))