[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/transient 179545a6e2 2/2: Re-initialize suffixes when r
From: |
Jonas Bernoulli |
Subject: |
[elpa] externals/transient 179545a6e2 2/2: Re-initialize suffixes when returning to :refresh-suffixes prefix |
Date: |
Thu, 14 Nov 2024 10:53:27 -0500 (EST) |
branch: externals/transient
commit 179545a6e29899aa89cbd77962a1c882f45927ca
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
Re-initialize suffixes when returning to :refresh-suffixes prefix
Closes #327.
---
lisp/transient.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/transient.el b/lisp/transient.el
index 474f43c6e5..6d0ff406b8 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -2135,7 +2135,8 @@ value. Otherwise return CHILDREN as is."
(setq transient--prefix (transient--init-prefix name params))
(setq name (oref transient--prefix command)))
(setq transient--refreshp (oref transient--prefix refresh-suffixes))
- (setq transient--layout (or layout (transient--init-suffixes name)))
+ (setq transient--layout (or (and (not transient--refreshp) layout)
+ (transient--init-suffixes name)))
(setq transient--suffixes (transient--flatten-suffixes transient--layout)))
(defun transient--init-prefix (name &optional params)