Mercurial > emacs
diff src/keyboard.c @ 78983:5e9c3bb5c034
(kbd_buffer_get_event): Break loop waiting for input
when there's an unread command event.
| author | Martin Rudalics <rudalics@gmx.at> |
|---|---|
| date | Sat, 06 Oct 2007 09:43:17 +0000 |
| parents | ef577a55cb2a |
| children | b68f875d7f68 5039706521c9 |
line wrap: on
line diff
--- a/src/keyboard.c Sat Oct 06 09:22:07 2007 +0000 +++ b/src/keyboard.c Sat Oct 06 09:43:17 2007 +0000 @@ -3995,6 +3995,12 @@ /* 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
