From: Martin Rudalics Date: Sat, 6 Oct 2007 09:43:17 +0000 (+0000) Subject: (kbd_buffer_get_event): Break loop waiting for input X-Git-Tag: emacs-pretest-22.1.90~672 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=15d814840f6ce72ddb14824f06ad474e8696dbc4;p=emacs.git (kbd_buffer_get_event): Break loop waiting for input when there's an unread command event. --- diff --git a/src/keyboard.c b/src/keyboard.c index c398a85684d..538c0a0d1b0 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -3995,6 +3995,12 @@ kbd_buffer_get_event (kbp, used_mouse_menu, end_time) /* Wait until there is input available. */ for (;;) { + /* Break loop if there's an unread command event. Needed in + moused window autoselection which uses a timer to insert such + events. */ + if (CONSP (Vunread_command_events)) + break; + if (kbd_fetch_ptr != kbd_store_ptr) break; #ifdef HAVE_MOUSE