diff options
| author | Michael Albinus | 2009-08-15 18:31:49 +0000 |
|---|---|---|
| committer | Michael Albinus | 2009-08-15 18:31:49 +0000 |
| commit | 485db0ba8618f888187586963d73ed2e36ae585d (patch) | |
| tree | 4292db5d4ef17ae61a2cf87b694b596e1d01faa9 | |
| parent | f573d5886c10d1312e77c6d7e8bee35b15840d85 (diff) | |
| download | emacs-485db0ba8618f888187586963d73ed2e36ae585d.tar.gz emacs-485db0ba8618f888187586963d73ed2e36ae585d.zip | |
* keyboard.c (readable_events): Call xd_pending_messages.
| -rw-r--r-- | src/ChangeLog | 9 | ||||
| -rw-r--r-- | src/keyboard.c | 10 |
2 files changed, 17 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e4162842008..11c371b6cca 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2009-08-15 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * dbusbind.c (xd_get_dispatch_status, xd_pending_messages): New | ||
| 4 | functions. | ||
| 5 | |||
| 6 | * lisp.h (xd_pending_messages): Declare. | ||
| 7 | |||
| 8 | * keyboard.c (readable_events): Call xd_pending_messages. | ||
| 9 | |||
| 1 | 2009-08-15 Chong Yidong <cyd@stupidchicken.com> | 10 | 2009-08-15 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 11 | ||
| 3 | * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131). | 12 | * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131). |
diff --git a/src/keyboard.c b/src/keyboard.c index a49c6465f41..9512e4ac979 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -3660,6 +3660,12 @@ static int | |||
| 3660 | readable_events (flags) | 3660 | readable_events (flags) |
| 3661 | int flags; | 3661 | int flags; |
| 3662 | { | 3662 | { |
| 3663 | #ifdef HAVE_DBUS | ||
| 3664 | /* Check whether a D-Bus message has arrived. */ | ||
| 3665 | if (xd_pending_messages () > 0) | ||
| 3666 | return 1; | ||
| 3667 | #endif /* HAVE_DBUS */ | ||
| 3668 | |||
| 3663 | if (flags & READABLE_EVENTS_DO_TIMERS_NOW) | 3669 | if (flags & READABLE_EVENTS_DO_TIMERS_NOW) |
| 3664 | timer_check (1); | 3670 | timer_check (1); |
| 3665 | 3671 | ||
| @@ -6982,7 +6988,7 @@ gobble_input (expected) | |||
| 6982 | int expected; | 6988 | int expected; |
| 6983 | { | 6989 | { |
| 6984 | #ifdef HAVE_DBUS | 6990 | #ifdef HAVE_DBUS |
| 6985 | /* Check whether a D-Bus message has arrived. */ | 6991 | /* Read D-Bus messages. */ |
| 6986 | xd_read_queued_messages (); | 6992 | xd_read_queued_messages (); |
| 6987 | #endif /* HAVE_DBUS */ | 6993 | #endif /* HAVE_DBUS */ |
| 6988 | 6994 | ||
| @@ -7338,7 +7344,7 @@ tty_read_avail_input (struct terminal *terminal, | |||
| 7338 | { | 7344 | { |
| 7339 | struct coding_system *coding = TERMINAL_KEYBOARD_CODING (terminal); | 7345 | struct coding_system *coding = TERMINAL_KEYBOARD_CODING (terminal); |
| 7340 | int from; | 7346 | int from; |
| 7341 | 7347 | ||
| 7342 | /* Decode the key sequence except for those with meta | 7348 | /* Decode the key sequence except for those with meta |
| 7343 | modifiers. */ | 7349 | modifiers. */ |
| 7344 | for (i = from = 0; ; i++) | 7350 | for (i = from = 0; ; i++) |