Skip to content

Commit

Permalink
transient-{set,save,reset}: Use transient-prefix-object
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Dec 1, 2023
1 parent 5f2cfc9 commit bccec99
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 @@ -2891,23 +2891,23 @@ transient is active."
(defun transient-set ()
"Set active transient's value for this Emacs session."
(interactive)
(transient-set-value (or transient--prefix transient-current-prefix)))
(transient-set-value (transient-prefix-object)))

(defalias 'transient-set-and-exit 'transient-set
"Set active transient's value for this Emacs session and exit.")

(defun transient-save ()
"Save active transient's value for this and future Emacs sessions."
(interactive)
(transient-save-value (or transient--prefix transient-current-prefix)))
(transient-save-value (transient-prefix-object)))

(defalias 'transient-save-and-exit 'transient-save
"Save active transient's value for this and future Emacs sessions and exit.")

(defun transient-reset ()
"Clear the set and saved values of the active transient."
(interactive)
(transient-reset-value (or transient--prefix transient-current-prefix)))
(transient-reset-value (transient-prefix-object)))

(defun transient-history-next ()
"Switch to the next value used for the active transient."
Expand Down

0 comments on commit bccec99

Please sign in to comment.