emacs-elpa-diffs
[Top][All Lists]
Advanced

[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))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]