From f65e6f7da42c7c7fc1f0c382aee65979a897bd57 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 8 Sep 1994 19:14:12 +0000 Subject: [PATCH] (record_asynch_buffer_change): Don't test Fwaiting_for_user_input_p if no subprocesses. --- src/keyboard.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/keyboard.c b/src/keyboard.c index 6534e45e022..96f0c651658 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -3447,6 +3447,7 @@ record_asynch_buffer_change () event.kind = buffer_switch_event; event.frame_or_window = Qnil; +#ifdef subprocesses /* We don't need a buffer-switch event unless Emacs is waiting for input. The purpose of the event is to make read_key_sequence look up the keymaps again. If we aren't in read_key_sequence, we don't need one, @@ -3454,6 +3455,10 @@ record_asynch_buffer_change () tem = Fwaiting_for_user_input_p (); if (NILP (tem)) return; +#else + /* We never need these events if we have no asynchronous subprocesses. */ + return; +#endif /* Make sure no interrupt happens while storing the event. */ #ifdef SIGIO -- 2.39.5