Commit 96edd5d4 authored by Kim F. Storm's avatar Kim F. Storm
Browse files

(Frecursive_edit): Return immediately if input blocked.

(Ftop_level): Unblock input if blocked.
parent c2de28ef
......@@ -996,6 +996,11 @@ This function is called by the editor initialization to begin editing. */)
int count = SPECPDL_INDEX ();
Lisp_Object buffer;
/* If we enter while input is blocked, don't lock up here.
This may happen through the debugger during redisplay. */
return Qnil;
update_mode_lines = 1;
......@@ -1294,6 +1299,12 @@ DEFUN ("top-level", Ftop_level, Stop_level, 0, 0, "",
if (display_hourglass_p)
cancel_hourglass ();
/* Unblock input if we enter with input blocked. This may happen if
redisplay traps e.g. during tool-bar update with input blocked. */
return Fthrow (Qtop_level, Qnil);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment