Mercurial > emacs
changeset 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 | 314950ad601e |
children | a26a566a5577 |
files | src/keyboard.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
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