Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
96edd5d4
Commit
96edd5d4
authored
May 17, 2004
by
Kim F. Storm
Browse files
(Frecursive_edit): Return immediately if input blocked.
(Ftop_level): Unblock input if blocked.
parent
c2de28ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
src/keyboard.c
src/keyboard.c
+11
-0
No files found.
src/keyboard.c
View file @
96edd5d4
...
...
@@ -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. */
if (INPUT_BLOCKED_P)
return Qnil;
command_loop_level++;
update_mode_lines = 1;
...
...
@@ -1294,6 +1299,12 @@ DEFUN ("top-level", Ftop_level, Stop_level, 0, 0, "",
if (display_hourglass_p)
cancel_hourglass ();
#endif
/* Unblock input if we enter with input blocked. This may happen if
redisplay traps e.g. during tool-bar update with input blocked. */
while (INPUT_BLOCKED_P)
UNBLOCK_INPUT;
return Fthrow (Qtop_level, Qnil);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment