From 9c9086d306adbfa0d53a4fa79e46d8ace8082478 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Wed, 27 Feb 2008 15:07:14 +0000 Subject: [PATCH] =?utf8?q?(wait=5Freading=5Fprocess=5Foutput):=20Check=20f?= =?utf8?q?or=20window=20changes=20caused=20by=20timers.=20Suggested=20by?= =?utf8?q?=20Johan=20Bockg=C3=A5rd.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/process.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/process.c b/src/process.c index f7abc7993d3..184701e4d1b 100644 --- a/src/process.c +++ b/src/process.c @@ -4376,13 +4376,15 @@ 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; timer_delay = timer_check (1); /* If a timer has run, this might have changed buffers an alike. Make read_key_sequence aware of that. */ if (timers_run != old_timers_run - && old_buffer != current_buffer + && (old_buffer != current_buffer + || !EQ (old_window, selected_window)) && waiting_for_user_input_p == -1) record_asynch_buffer_change (); -- 2.39.2