Mercurial > emacs
comparison src/ChangeLog @ 111353:f2cb0d643a91
Backport fix for Bug#6571 from trunk. NOTE: May cause merge conflicts.
* src/keyboard.c (input_available_signal): Declare.
(kbd_buffer_nr_stored): New function.
(kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
(kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
(tty_read_avail_input): If input is on hold, return.
Don't read more that free slots in kbd_buffer (Bug#6571).
* src/process.c (kbd_is_on_hold): New variable.
(hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
New functions.
(wait_reading_process_output): If kbd_on_hold_p returns non-zero,
select on empty input mask.
(init_process): Initialize kbd_is_on_hold to 0.
* src/process.h (hold_keyboard_input, unhold_keyboard_input)
(kbd_on_hold_p): Declare.
| author | Jan D. <jan.h.d@swipnet.se> |
|---|---|
| date | Mon, 01 Nov 2010 12:30:33 +0100 |
| parents | d7cb530f5469 |
| children | 7df8e74a1096 |
comparison
equal
deleted
inserted
replaced
| 111352:9c78ac7dcdf0 | 111353:f2cb0d643a91 |
|---|---|
| 1 2010-11-01 Jan Djärv <jan.h.d@swipnet.se> | |
| 2 | |
| 3 * process.c (kbd_is_on_hold): New variable. | |
| 4 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p): | |
| 5 New functions. | |
| 6 (wait_reading_process_output): If kbd_on_hold_p returns non-zero, | |
| 7 select on empty input mask. | |
| 8 (init_process): Initialize kbd_is_on_hold to 0. | |
| 9 | |
| 10 * process.h (hold_keyboard_input, unhold_keyboard_input) | |
| 11 (kbd_on_hold_p): Declare. | |
| 12 | |
| 13 * keyboard.c (input_available_signal): Declare. | |
| 14 (kbd_buffer_nr_stored): New function. | |
| 15 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns | |
| 16 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571). | |
| 17 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored | |
| 18 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571). | |
| 19 (tty_read_avail_input): If input is on hold, return. | |
| 20 Don't read more that free slots in kbd_buffer (Bug#6571). | |
| 21 | |
| 1 2010-10-31 Chong Yidong <cyd@stupidchicken.com> | 22 2010-10-31 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 23 |
| 3 * xterm.c (x_connection_closed): Print informative error message | 24 * xterm.c (x_connection_closed): Print informative error message |
| 4 when aborting on GTK. This requires using shut_down_emacs | 25 when aborting on GTK. This requires using shut_down_emacs |
| 5 directly instead of Fkill_emacs. | 26 directly instead of Fkill_emacs. |
