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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/transient f51c144a47: transient--make-predicate-map: Fi


From: Jonas Bernoulli
Subject: [elpa] externals/transient f51c144a47: transient--make-predicate-map: Fix detecting outer prefix
Date: Sat, 20 Jan 2024 14:45:22 -0500 (EST)

branch: externals/transient
commit f51c144a47a6a865e6453afb82c3c12a31fa4b0b
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    transient--make-predicate-map: Fix detecting outer prefix
    
    Since [1: 5f2cfc9f] we try to detect whether there is an outer
    prefix, that non-transient suffixes could return to, by checking
    if `transient--current-prefix' is non-nil.  That works then the
    prefix is created, but that variable is also always non-nil after
    a transient suffix is invoked.  Instead check if `transient--stack'
    is non-nil.
    
    1: 2023-11-29 5f2cfc9f73e756fb337df70909fcd3d0bce56911
       transient--make-predicate-map: Only return if there is a parent
---
 lisp/transient.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/transient.el b/lisp/transient.el
index ff17c5101a..80fc41739b 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -1831,7 +1831,7 @@ of the corresponding object."
 (defun transient--make-predicate-map ()
   (let* ((default (transient--resolve-pre-command
                    (oref transient--prefix transient-suffix)))
-         (return (and transient-current-prefix (eq default t)))
+         (return (and transient--stack (eq default t)))
          (map (make-sparse-keymap)))
     (set-keymap-parent map transient-predicate-map)
     (when (or (and (slot-boundp transient--prefix 'transient-switch-frame)



reply via email to

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