From: Richard M. Stallman Date: Sat, 6 May 1995 23:07:51 +0000 (+0000) Subject: (wait_reading_process_input): Don't call prepare_menu_bars. X-Git-Tag: emacs-19.34~4130 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7286affd2a07a466f93aff883206b2589b27e9a1;p=emacs.git (wait_reading_process_input): Don't call prepare_menu_bars. Clear waiting_for_input around calling redisplay_preserve_echo_area. --- diff --git a/src/process.c b/src/process.c index f02e6a2071a..b9c22c07924 100644 --- a/src/process.c +++ b/src/process.c @@ -1947,11 +1947,6 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display) EMACS_ADD_TIME (end_time, end_time, timeout); } - /* It would not be safe to call this below, - where we call redisplay_preserve_echo_area. */ - if (do_display && frame_garbaged) - prepare_menu_bars (); - while (1) { /* If calling from keyboard input, do not quit @@ -2035,7 +2030,12 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display) and indicates that a frame is trashed, the select may block displaying a trashed screen. */ if (frame_garbaged && do_display) - redisplay_preserve_echo_area (); + { + clear_waiting_for_input (); + redisplay_preserve_echo_area (); + if (XINT (read_kbd) < 0) + set_waiting_for_input (); + } if (XINT (read_kbd) && detect_input_pending ()) {