comparison src/keyboard.c @ 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 4eaaff49a24e
children 948557b5aa7c
comparison
equal deleted inserted replaced
18500:2240a2e37b12 18501:37f4c7aeb5a8
479 EMACS_TIME timer_check (); 479 EMACS_TIME timer_check ();
480 480
481 extern char *x_get_keysym_name (); 481 extern char *x_get_keysym_name ();
482 482
483 static void record_menu_key (); 483 static void record_menu_key ();
484
485 void swallow_events ();
484 486
485 Lisp_Object Qpolling_period; 487 Lisp_Object Qpolling_period;
486 488
487 /* List of absolute timers. Appears in order of next scheduled event. */ 489 /* List of absolute timers. Appears in order of next scheduled event. */
488 Lisp_Object Vtimer_list; 490 Lisp_Object Vtimer_list;
1785 /* This event should make it into this_command_keys, and get echoed 1787 /* This event should make it into this_command_keys, and get echoed
1786 again, so we go to reread_first, rather than reread. */ 1788 again, so we go to reread_first, rather than reread. */
1787 goto reread_first; 1789 goto reread_first;
1788 } 1790 }
1789 1791
1790 if (commandflag >= 0 && !input_pending 1792 if (commandflag >= 0)
1791 && !detect_input_pending_run_timers (0)) 1793 {
1792 redisplay (); 1794 if (input_pending
1795 || detect_input_pending_run_timers (0))
1796 swallow_events (0);
1797
1798 if (!input_pending)
1799 redisplay ();
1800 }
1793 1801
1794 /* Message turns off echoing unless more keystrokes turn it on again. */ 1802 /* Message turns off echoing unless more keystrokes turn it on again. */
1795 if (echo_area_glyphs && *echo_area_glyphs 1803 if (echo_area_glyphs && *echo_area_glyphs
1796 && echo_area_glyphs != current_kboard->echobuf 1804 && echo_area_glyphs != current_kboard->echobuf
1797 && ok_to_echo_at_next_pause != echo_area_glyphs) 1805 && ok_to_echo_at_next_pause != echo_area_glyphs)