Chong Yidong <cyd at stupidchicken.com>

(wait_reading_process_output): Check for window changes caused by timers.
This commit is contained in:
Glenn Morris 2008-01-10 04:08:55 +00:00
parent 86a6434d77
commit c032313333
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2008-01-10 Chong Yidong <cyd@stupidchicken.com>
* process.c (wait_reading_process_output): Check for window
changes caused by timers.
2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
* coding.c (detect_coding_iso2022): New arg

View file

@ -4718,6 +4718,7 @@ wait_reading_process_output (time_limit, microsecs, read_kbd, do_display,
{
int old_timers_run = timers_run;
struct buffer *old_buffer = current_buffer;
Lisp_Object old_window = selected_window;
int leave = 0;
if (detect_input_pending_run_timers (do_display))
@ -4731,7 +4732,8 @@ wait_reading_process_output (time_limit, microsecs, read_kbd, do_display,
an alike. Make read_key_sequence aware of that. */
if (timers_run != old_timers_run
&& waiting_for_user_input_p == -1
&& old_buffer != current_buffer)
&& (old_buffer != current_buffer
|| !EQ (old_window, selected_window)))
record_asynch_buffer_change ();
if (leave)