comparison src/process.c @ 11728:affed1766d34

(wait_reading_process_input): Don't call prepare_menu_bars. Clear waiting_for_input around calling redisplay_preserve_echo_area.
author Richard M. Stallman <rms@gnu.org>
date Sat, 06 May 1995 23:07:51 +0000
parents 0f9b9c375416
children 52a2c8e81bb7
comparison
equal deleted inserted replaced
11727:53ccd2d608ee 11728:affed1766d34
1945 EMACS_GET_TIME (end_time); 1945 EMACS_GET_TIME (end_time);
1946 EMACS_SET_SECS_USECS (timeout, time_limit, microsecs); 1946 EMACS_SET_SECS_USECS (timeout, time_limit, microsecs);
1947 EMACS_ADD_TIME (end_time, end_time, timeout); 1947 EMACS_ADD_TIME (end_time, end_time, timeout);
1948 } 1948 }
1949 1949
1950 /* It would not be safe to call this below,
1951 where we call redisplay_preserve_echo_area. */
1952 if (do_display && frame_garbaged)
1953 prepare_menu_bars ();
1954
1955 while (1) 1950 while (1)
1956 { 1951 {
1957 /* If calling from keyboard input, do not quit 1952 /* If calling from keyboard input, do not quit
1958 since we want to return C-g as an input character. 1953 since we want to return C-g as an input character.
1959 Otherwise, do pending quit if requested. */ 1954 Otherwise, do pending quit if requested. */
2033 redisplay now, before we start to wait. There is a race 2028 redisplay now, before we start to wait. There is a race
2034 condition here; if a SIGIO arrives between now and the select 2029 condition here; if a SIGIO arrives between now and the select
2035 and indicates that a frame is trashed, the select may block 2030 and indicates that a frame is trashed, the select may block
2036 displaying a trashed screen. */ 2031 displaying a trashed screen. */
2037 if (frame_garbaged && do_display) 2032 if (frame_garbaged && do_display)
2038 redisplay_preserve_echo_area (); 2033 {
2034 clear_waiting_for_input ();
2035 redisplay_preserve_echo_area ();
2036 if (XINT (read_kbd) < 0)
2037 set_waiting_for_input ();
2038 }
2039 2039
2040 if (XINT (read_kbd) && detect_input_pending ()) 2040 if (XINT (read_kbd) && detect_input_pending ())
2041 { 2041 {
2042 nfds = 0; 2042 nfds = 0;
2043 FD_ZERO (&Available); 2043 FD_ZERO (&Available);