summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2021-02-21 23:25:00 +0100
committerJonas Bernoulli <jonas@bernoul.li>2021-02-21 23:25:00 +0100
commit48335f8370ff15d91874d0091dc97b22c540e15f (patch)
tree96aba0b35ca091cec34c6f7216716014c8a3612c
parent48238bf580c0a3e8ea05ffc5ee86eb104404ea3b (diff)
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.
-rw-r--r--lisp/transient.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/transient.el b/lisp/transient.el
index 51106e7..c01d0cf 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)