Skip to content

Commit

Permalink
transient--current-buffer: Fix obsolete variable alias
Browse files Browse the repository at this point in the history
Define it before the new variable and correct the version number.
  • Loading branch information
tarsius committed Nov 2, 2023
1 parent 0dda40e commit 2b7219c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lisp/transient.el
Original file line number Diff line number Diff line change
Expand Up @@ -1437,6 +1437,8 @@ Usually it remains selected while the transient is active.")
"The buffer that was current before the transient was invoked.
Usually it remains current while the transient is active.")

(define-obsolete-variable-alias 'transient--current-buffer
'transient--shadowed-buffer "0.4.4") ; TODO Remove before that release.
(defvar transient--shadowed-buffer nil
"The buffer that is temporarily shadowed by the transient buffer.
This is bound while the suffix predicate is being evaluated and while
Expand All @@ -1461,9 +1463,6 @@ This is bound while the suffixes are drawn in the transient buffer.")
mwheel-scroll
scroll-bar-toolkit-scroll))

(define-obsolete-variable-alias 'transient--current-buffer
'transient--shadowed-buffer "0.4.5") ; TODO Remove before that release.

;;; Identities

(defun transient-suffix-object (&optional command)
Expand Down

0 comments on commit 2b7219c

Please sign in to comment.