mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-27 07:41:28 -08:00
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
This commit is contained in:
parent
711066c8c1
commit
614beeecf2
2 changed files with 9 additions and 1 deletions
|
|
@ -1,3 +1,10 @@
|
|||
2014-11-01 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* 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. (Bug#18856)
|
||||
|
||||
2014-11-01 Jan Djärv <jan.h.d@swipnet.se>
|
||||
|
||||
* nsselect.m (QCLIPBOARD, QSECONDARY, QTEXT, QFILE_NAME)
|
||||
|
|
|
|||
|
|
@ -3495,7 +3495,8 @@ readable_events (int flags)
|
|||
&& event->part == scroll_bar_handle
|
||||
&& event->modifiers == 0)
|
||||
#endif
|
||||
)
|
||||
&& !((flags & READABLE_EVENTS_FILTER_EVENTS)
|
||||
&& event->kind == BUFFER_SWITCH_EVENT))
|
||||
return 1;
|
||||
event++;
|
||||
if (event == kbd_buffer + KBD_BUFFER_SIZE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue