[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/transient a2ff9bc5a3 16/41: transient--stack-push: Pres
|
From: |
Jonas Bernoulli |
|
Subject: |
[elpa] externals/transient a2ff9bc5a3 16/41: transient--stack-push: Preserve value of transient-suffix slot |
|
Date: |
Sun, 12 Nov 2023 20:04:08 -0500 (EST) |
branch: externals/transient
commit a2ff9bc5a32c75156b6e526ab7a2162eb640d951
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
transient--stack-push: Preserve value of transient-suffix slot
Given a prefix nesting that is three or more levels deep, where
exiting any of the sub-levels is expected to return to the outer
level, that failed except for the innermost level, because the
value of a (sub-)prefix's `transient-suffix' slot is set to t
based on settings in the outer prefix, and technically there is no
outer prefix *active* when we return to an outer level (instead it
lives in the stack, from where we pop it).
We can pass the slot's value between incarnations of the sub-prefix's
object, by including it in the data stored in the stack.
---
lisp/transient.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/lisp/transient.el b/lisp/transient.el
index 9db266c8ce..2b6328e358 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -2404,6 +2404,7 @@ value. Otherwise return CHILDREN as is."
(push (list (oref transient--prefix command)
transient--layout
transient--editp
+ :transient-suffix (oref transient--prefix transient-suffix)
:scope (oref transient--prefix scope))
transient--stack))
- [elpa] externals/transient b4a2963636 33/41: transient-format(around:suffix): Update for transient-information, (continued)
- [elpa] externals/transient b4a2963636 33/41: transient-format(around:suffix): Update for transient-information, Jonas Bernoulli, 2023/11/12
- [elpa] externals/transient d44c4fce39 40/41: transient--get-face: Use for inapt-face, Jonas Bernoulli, 2023/11/12
- [elpa] externals/transient eaf062a921 11/41: transient--make-predicate-map: Refactor, Jonas Bernoulli, 2023/11/12
- [elpa] externals/transient 5ad5b627f6 15/41: transient--setup-recursion: When initiated by outer transient-suffix, Jonas Bernoulli, 2023/11/12
- [elpa] externals/transient 2b7219cf6a 28/41: transient--current-buffer: Fix obsolete variable alias, Jonas Bernoulli, 2023/11/12
- [elpa] externals/transient 0a0ba1aa90 01/41: transient--do-leave: Actually behave as documented, Jonas Bernoulli, 2023/11/12
- [elpa] externals/transient 8bfd92993f 17/41: manual: Update "Transient State" section, Jonas Bernoulli, 2023/11/12
- [elpa] externals/transient 0dda40e8b6 27/41: transient-with-shadowed-buffer: New macro, Jonas Bernoulli, 2023/11/12
- [elpa] externals/transient b1d1c36966 37/41: Prevent temporary faces from leaking back into objects, Jonas Bernoulli, 2023/11/12
- [elpa] externals/transient ef02586712 03/41: transient--invalid: Remove message about former heisenbug, Jonas Bernoulli, 2023/11/12
- [elpa] externals/transient a2ff9bc5a3 16/41: transient--stack-push: Preserve value of transient-suffix slot,
Jonas Bernoulli <=
- [elpa] externals/transient 71399d21c5 30/41: transient-format: No longer apply face for inapt bindings here, Jonas Bernoulli, 2023/11/12
- [elpa] externals/transient 3cd1de1695 41/41: Make shadowed buffer current around forge-format{, -description}, Jonas Bernoulli, 2023/11/12