From: Jan Djärv Date: Wed, 9 Apr 2008 06:47:19 +0000 (+0000) Subject: (wait_reading_process_output): If SYNC_INPUT and pending_atimers, run atimers. X-Git-Tag: emacs-pretest-23.0.90~6405 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ef5eb9256f1e02d97697878276b602500957a626;p=emacs.git (wait_reading_process_output): If SYNC_INPUT and pending_atimers, run atimers. --- diff --git a/src/ChangeLog b/src/ChangeLog index 918b914b076..179fcadfc21 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,14 @@ +2008-04-09 Jan Djärv + + * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT. + Most of the code moved to run_timers. + (do_pending_atimers): Call run_timers. + (run_timers): New function. + + * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers, run atimers. + + * process.c (wait_reading_process_output): The same as above. + 2008-04-09 Stefan Monnier * minibuf.c (last_exact_completion): Remove variable. diff --git a/src/process.c b/src/process.c index c3dfd59eeb5..3acf7d35e80 100644 --- a/src/process.c +++ b/src/process.c @@ -4309,8 +4309,13 @@ wait_reading_process_output (time_limit, microsecs, read_kbd, do_display, if (read_kbd >= 0) QUIT; #ifdef SYNC_INPUT - else if (interrupt_input_pending) - handle_async_input (); + else + { + if (interrupt_input_pending) + handle_async_input (); + if (pending_atimers) + do_pending_atimers (); + } #endif /* Exit now if the cell we're waiting for became non-nil. */