Skip to content

Commit

Permalink
Rename transient--{do => call}-pre-command
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Nov 23, 2023
1 parent 004ca25 commit f23f51e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lisp/transient.el
Original file line number Diff line number Diff line change
Expand Up @@ -2171,7 +2171,7 @@ value. Otherwise return CHILDREN as is."
(transient--wrap-command))
(t
(setq transient--exitp nil)
(let ((exitp (eq (transient--do-pre-command) transient--exit)))
(let ((exitp (eq (transient--call-pre-command) transient--exit)))
(transient--wrap-command)
(when exitp
(transient--pre-exit)))))))
Expand Down Expand Up @@ -2504,7 +2504,7 @@ nil) then do nothing."

;;; Pre-Commands

(defun transient--do-pre-command ()
(defun transient--call-pre-command ()
(if-let ((fn (transient--get-predicate-for this-command)))
(let ((action (funcall fn)))
(when (eq action transient--exit)
Expand Down Expand Up @@ -2590,7 +2590,7 @@ Use that command's pre-command to determine transient behavior."
(posn-point (event-start last-command-event))
(point))
'command)))
(transient--do-pre-command)))
(transient--call-pre-command)))

(defun transient--do-recurse ()
"Call the transient prefix command, preparing for return to active transient.
Expand Down

0 comments on commit f23f51e

Please sign in to comment.