comparison src/process.c @ 14785:e4a9806c1e83

(wait_reading_process_input): Redisplay after timer_check if timers were actually run.
author Richard M. Stallman <rms@gnu.org>
date Fri, 08 Mar 1996 03:51:46 +0000
parents 849458c13c0c
children 45827a5afe4d
comparison
equal deleted inserted replaced
14784:c5b4cda157b3 14785:e4a9806c1e83
249 int proc_buffered_char[MAXDESC]; 249 int proc_buffered_char[MAXDESC];
250 250
251 static Lisp_Object get_process (); 251 static Lisp_Object get_process ();
252 252
253 extern EMACS_TIME timer_check (); 253 extern EMACS_TIME timer_check ();
254 extern int timers_run;
254 255
255 /* Maximum number of bytes to send to a pty without an eof. */ 256 /* Maximum number of bytes to send to a pty without an eof. */
256 static int pty_max_bytes; 257 static int pty_max_bytes;
257 258
258 #ifdef HAVE_PTYS 259 #ifdef HAVE_PTYS
2076 (Callers that will immediately read keyboard events 2077 (Callers that will immediately read keyboard events
2077 call timer_delay on their own.) */ 2078 call timer_delay on their own.) */
2078 if (read_kbd >= 0) 2079 if (read_kbd >= 0)
2079 { 2080 {
2080 EMACS_TIME timer_delay; 2081 EMACS_TIME timer_delay;
2082 int old_timers_run = timers_run;
2081 timer_delay = timer_check (1); 2083 timer_delay = timer_check (1);
2084 if (timers_run != old_timers_run && do_display)
2085 redisplay_preserve_echo_area ();
2082 if (! EMACS_TIME_NEG_P (timer_delay) && time_limit != -1) 2086 if (! EMACS_TIME_NEG_P (timer_delay) && time_limit != -1)
2083 { 2087 {
2084 EMACS_TIME difference; 2088 EMACS_TIME difference;
2085 EMACS_SUB_TIME (difference, timer_delay, timeout); 2089 EMACS_SUB_TIME (difference, timer_delay, timeout);
2086 if (EMACS_TIME_NEG_P (difference)) 2090 if (EMACS_TIME_NEG_P (difference))