]> code.delx.au - gnu-emacs/blobdiff - src/keyboard.c
Fix hang with large yanks This should fix the bug fixed by Mike
[gnu-emacs] / src / keyboard.c
index c5a392f862dc2174975a18d16566f1744763a26f..6bd123c67109358d669f70a814a0a2894ef31e1d 100644 (file)
@@ -3649,8 +3649,7 @@ kbd_buffer_store_buffered_event (union buffered_input_event *event,
           /* Don't read keyboard input until we have processed kbd_buffer.
              This happens when pasting text longer than KBD_BUFFER_SIZE/2.  */
           hold_keyboard_input ();
-          if (!noninteractive)
-            ignore_sigio ();
+          unrequest_sigio ();
           stop_polling ();
         }
 #endif /* subprocesses */
@@ -3849,6 +3848,7 @@ kbd_buffer_get_event (KBOARD **kbp,
       /* Start reading input again because we have processed enough to
          be able to accept new events again.  */
       unhold_keyboard_input ();
+      request_sigio ();
       start_polling ();
     }
 #endif /* subprocesses */