Mercurial > emacs
changeset 18501:37f4c7aeb5a8
(read_char): Add a call to swallow_events
when deciding whether to redisplay.
(swallow_events): Add forward declaration.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 30 Jun 1997 08:22:49 +0000 |
parents | 2240a2e37b12 |
children | 708870732e5d |
files | src/keyboard.c |
diffstat | 1 files changed, 11 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/keyboard.c Mon Jun 30 06:13:58 1997 +0000 +++ b/src/keyboard.c Mon Jun 30 08:22:49 1997 +0000 @@ -482,6 +482,8 @@ static void record_menu_key (); +void swallow_events (); + Lisp_Object Qpolling_period; /* List of absolute timers. Appears in order of next scheduled event. */ @@ -1787,9 +1789,15 @@ goto reread_first; } - if (commandflag >= 0 && !input_pending - && !detect_input_pending_run_timers (0)) - redisplay (); + if (commandflag >= 0) + { + if (input_pending + || detect_input_pending_run_timers (0)) + swallow_events (0); + + if (!input_pending) + redisplay (); + } /* Message turns off echoing unless more keystrokes turn it on again. */ if (echo_area_glyphs && *echo_area_glyphs