]> code.delx.au - gnu-emacs/commitdiff
Fix while-no-input loops (Bug#19547)
authorEli Zaretskii <eliz@gnu.org>
Sat, 31 Jan 2015 08:35:26 +0000 (10:35 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 31 Jan 2015 08:35:26 +0000 (10:35 +0200)
 src/keyboard.c (kbd_buffer_store_event_hold): Ignore FOCUS_OUT_EVENT
 and ICONIFY_EVENT for the purposes of breaking while-no-input
 loops.

src/ChangeLog
src/keyboard.c

index fd211304ac56e87be43c95fb3fa53aedeee2ef52..61d1067750aa087ef93747e37ba1626e9b03d831 100644 (file)
@@ -1,5 +1,9 @@
 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
 
+       * keyboard.c (kbd_buffer_store_event_hold): Ignore FOCUS_OUT_EVENT
+       and ICONIFY_EVENT for the purposes of breaking while-no-input
+       loops.  (Bug#19547)
+
        * dired.c (read_dirent): Correct the "MSDOS hacks" hack: the
        special code for errno = ENOENT or EACCES is needed for WINDOWSNT,
        not for MSDOS.
index 383c109c4466abda02a8277b459e2973d0f554ee..7718f8efa7b08bdfd44aeb1797b543f07ccf441f 100644 (file)
@@ -3639,7 +3639,9 @@ kbd_buffer_store_event_hold (register struct input_event *event,
      as input, set quit-flag to cause an interrupt.  */
   if (!NILP (Vthrow_on_input)
       && event->kind != FOCUS_IN_EVENT
+      && event->kind != FOCUS_OUT_EVENT
       && event->kind != HELP_EVENT
+      && event->kind != ICONIFY_EVENT
       && event->kind != DEICONIFY_EVENT)
     {
       Vquit_flag = Vthrow_on_input;