From 48335f8370ff15d91874d0091dc97b22c540e15f Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Sun, 21 Feb 2021 23:25:00 +0100 Subject: 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 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) -- cgit v1.0