# HG changeset patch # User Richard M. Stallman # Date 779051652 0 # Node ID 44a433fa6e8fd4b9a594b4026b6c6c42566b4fb8 # Parent e56d09b95778cbc749682615b9b2128e8a47c080 (record_asynch_buffer_change): Don't test Fwaiting_for_user_input_p if no subprocesses. diff -r e56d09b95778 -r 44a433fa6e8f src/keyboard.c --- a/src/keyboard.c Thu Sep 08 17:44:42 1994 +0000 +++ b/src/keyboard.c Thu Sep 08 19:14:12 1994 +0000 @@ -3447,6 +3447,7 @@ 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 @@ 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