diff options
| author | Eli Zaretskii | 2014-11-01 16:22:32 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2014-11-01 16:22:32 +0200 |
| commit | 614beeecf29d16c08f66a4f82b6085be90df8a74 (patch) | |
| tree | 3ae85ea2a061cbc7ba10030668c02292cbd6c0c0 /src/keyboard.c | |
| parent | 711066c8c14c8bd2b7ca88fda3d9847b6622b148 (diff) | |
| download | emacs-614beeecf29d16c08f66a4f82b6085be90df8a74.tar.gz emacs-614beeecf29d16c08f66a4f82b6085be90df8a74.zip | |
Ignore BUFFER_SWITCH_EVENT events for the purposes of input-pending-p.
src/keyboard.c (readable_events): When FLAGS include
READABLE_EVENTS_FILTER_EVENTS, ignore BUFFER_SWITCH_EVENT events.
This avoids returning non-nil from input-pending-p when only such
events are in the queue.
Fixes: debbugs:18856
Diffstat (limited to 'src/keyboard.c')
| -rw-r--r-- | src/keyboard.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 32d14ab0760..e16ee51ee0e 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -3495,7 +3495,8 @@ readable_events (int flags) | |||
| 3495 | && event->part == scroll_bar_handle | 3495 | && event->part == scroll_bar_handle |
| 3496 | && event->modifiers == 0) | 3496 | && event->modifiers == 0) |
| 3497 | #endif | 3497 | #endif |
| 3498 | ) | 3498 | && !((flags & READABLE_EVENTS_FILTER_EVENTS) |
| 3499 | && event->kind == BUFFER_SWITCH_EVENT)) | ||
| 3499 | return 1; | 3500 | return 1; |
| 3500 | event++; | 3501 | event++; |
| 3501 | if (event == kbd_buffer + KBD_BUFFER_SIZE) | 3502 | if (event == kbd_buffer + KBD_BUFFER_SIZE) |