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

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

[elpa] externals/transient 48335f8370 237/366: transient-status: Prevent


From: Jonas Bernoulli
Subject: [elpa] externals/transient 48335f8370 237/366: transient-status: Prevent use while minibuffer is active
Date: Tue, 25 Jan 2022 18:54:44 -0500 (EST)

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

    transient-status: Prevent use while minibuffer is active
    
    This is only a temporary restriction intended to prevent
    Emacs from getting stuck in an inconsistent state.
    
    See #112.
---
 lisp/transient.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lisp/transient.el b/lisp/transient.el
index 51106e7e30..c01d0cf3cc 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -1622,9 +1622,8 @@ be nil and PARAMS may be (but usually is not) used to set 
e.g. the
 This function is also called internally in which case LAYOUT and
 EDIT may be non-nil."
   (transient--debug 'setup)
-  (when (and (>= (minibuffer-depth) 1) transient--prefix)
-    (error "Cannot invoke %s while minibuffer is active %s"
-           this-command "on behalf of another prefix command"))
+  (when (> (minibuffer-depth) 0)
+    (user-error "Cannot invoke transient %s while minibuffer is active"))
   (transient--with-emergency-exit
     (cond
      ((not name)



reply via email to

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