[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/transient 645f1b2cd4 25/25: transient--stack-push: Pres
From: |
Jonas Bernoulli |
Subject: |
[elpa] externals/transient 645f1b2cd4 25/25: transient--stack-push: Preserve the value |
Date: |
Tue, 3 Dec 2024 14:35:03 -0500 (EST) |
branch: externals/transient
commit 645f1b2cd4881a7fb7acb2d2a3bc125701786e05
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
transient--stack-push: Preserve the value
Since [1: 179545a6] we re-initialize suffixes when returning to the
outer prefix, that also resulted in the value of the prefix and the
values of the suffixes being re-initialized.
We can prevent that by storing the value on the prefix stack, as we
are already doing for the scope.
The value of a prefix's `value' slot is not updated when the user
changes the value of a suffix, so we cannot use the current value
of that. Instead we have to collect the up-to-date value from the
suffixes.
Closes #333.
1: 2024-11-13 179545a6e29899aa89cbd77962a1c882f45927ca
Re-initialize suffixes when returning to :refresh-suffixes prefix
---
lisp/transient.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/transient.el b/lisp/transient.el
index 4949db7f3a..e14cbf2d40 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -2714,7 +2714,8 @@ value. Otherwise return CHILDREN as is."
transient--layout
transient--editp
:transient-suffix (oref transient--prefix transient-suffix)
- :scope (oref transient--prefix scope))
+ :scope (oref transient--prefix scope)
+ :value (transient-get-value))
transient--stack))
(defun transient--stack-pop ()
- [elpa] externals/transient updated (35bbc35929 -> 645f1b2cd4), Jonas Bernoulli, 2024/12/03
- [elpa] externals/transient c9a62d5a16 10/25: Improve doc-strings of functions dealing with values, Jonas Bernoulli, 2024/12/03
- [elpa] externals/transient deb1569c9c 07/25: transient-prefix-value: New generic function, Jonas Bernoulli, 2024/12/03
- [elpa] externals/transient c93c35f567 13/25: transient--show: Fix window height for more setups, Jonas Bernoulli, 2024/12/03
- [elpa] externals/transient aaefee0d01 03/25: Remove comments mentioning a legacy Emacs bug, Jonas Bernoulli, 2024/12/03
- [elpa] externals/transient 3b28a2f8d6 12/25: transient-hide-during-minibuffer-read: Change default to t, Jonas Bernoulli, 2024/12/03
- [elpa] externals/transient 3539231b98 20/25: fixup(e3e2e111): Improve options for showing menu during minibuffer use, Jonas Bernoulli, 2024/12/03
- [elpa] externals/transient 645f1b2cd4 25/25: transient--stack-push: Preserve the value,
Jonas Bernoulli <=
- [elpa] externals/transient d64b73efbc 17/25: transient-scope: Return nil if all prefixes are nil, Jonas Bernoulli, 2024/12/03
- [elpa] externals/transient ecdee415fb 16/25: transient-scope: Fully revert behavior with no argument, Jonas Bernoulli, 2024/12/03
- [elpa] externals/transient b3f3aa034a 09/25: transient-init-value: Define noop method for transient-suffix, Jonas Bernoulli, 2024/12/03
- [elpa] externals/transient 4130f62966 11/25: transient--show: Run transient-setup-buffer-hook later, Jonas Bernoulli, 2024/12/03
- [elpa] externals/transient 24a1be509b 02/25: docs: Fix word order, Jonas Bernoulli, 2024/12/03
- [elpa] externals/transient d0cba152dc 06/25: transient-scope: Add PREFIX argument, Jonas Bernoulli, 2024/12/03
- [elpa] externals/transient 75f0aef8d7 04/25: Add new "Scope" top-level section, Jonas Bernoulli, 2024/12/03
- [elpa] externals/transient 9259f77e14 05/25: transient-args: Allow PREFIX to be a list of prefixes, Jonas Bernoulli, 2024/12/03
- [elpa] externals/transient 6b83a02151 08/25: transient-init-scope: Add stub method for prefixes, Jonas Bernoulli, 2024/12/03
- [elpa] externals/transient 37be15575a 23/25: fixup(e3e2e111): Improve options for showing menu during minibuffer use, Jonas Bernoulli, 2024/12/03