aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-08-10 03:21:20 +0000
committerRichard M. Stallman1994-08-10 03:21:20 +0000
commita30f0615eb3b5f218891f1b96f22732acf2ce3de (patch)
tree74a3d4d666b0299b36c155025beb4e172fe7225c /src
parent9ab0f97991680915782993e43eb60fc67222ff1f (diff)
downloademacs-a30f0615eb3b5f218891f1b96f22732acf2ce3de.tar.gz
emacs-a30f0615eb3b5f218891f1b96f22732acf2ce3de.zip
(record_asynch_buffer_change): Do nothing except when waiting_for_user_input_p.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 76fba2e35ad..ff26a4e414b 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -3419,9 +3419,19 @@ gobble_input (expected)
3419record_asynch_buffer_change () 3419record_asynch_buffer_change ()
3420{ 3420{
3421 struct input_event event; 3421 struct input_event event;
3422 Lisp_Object tem;
3423
3422 event.kind = buffer_switch_event; 3424 event.kind = buffer_switch_event;
3423 event.frame_or_window = Qnil; 3425 event.frame_or_window = Qnil;
3424 3426
3427 /* We don't need a buffer-switch event unless Emacs is waiting for input.
3428 The purpose of the event is to make read_key_sequence look up the
3429 keymaps again. If we aren't in read_key_sequence, we don't need one,
3430 and the event could cause trouble by messing up (input-pending-p). */
3431 tem = Fwaiting_for_user_input_p ();
3432 if (NILP (tem))
3433 return;
3434
3425 /* Make sure no interrupt happens while storing the event. */ 3435 /* Make sure no interrupt happens while storing the event. */
3426#ifdef SIGIO 3436#ifdef SIGIO
3427 if (interrupt_input) 3437 if (interrupt_input)