Allow client connections when in recursive-edit
* lisp/server.el (server-goto-toplevel): Check minibuffer depth, not recursion depth. This avoids exiting recursive-edit if a client connection is accepted during recursive-edit. (Bug#37176)
This commit is contained in:
parent
f34f49f35e
commit
cac8152c8e
1 changed files with 1 additions and 1 deletions
|
@ -926,7 +926,7 @@ This handles splitting the command if it would be bigger than
|
|||
(isearch-cancel))))
|
||||
;; Signaled by isearch-cancel.
|
||||
(quit (message nil)))
|
||||
(when (> (recursion-depth) 0)
|
||||
(when (> (minibuffer-depth) 0)
|
||||
;; We're inside a minibuffer already, so if the emacs-client is trying
|
||||
;; to open a frame on a new display, we might end up with an unusable
|
||||
;; frame because input from that display will be blocked (until exiting
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue