diff options
| author | Jan D | 2010-07-07 19:39:49 +0200 |
|---|---|---|
| committer | Jan D | 2010-07-07 19:39:49 +0200 |
| commit | cb768704a459ab54632daf5bb1a10127a6a5c9f7 (patch) | |
| tree | f4f9018ea6563a1eee13550f9a8bc89731f0ad25 /src/ChangeLog | |
| parent | 3a8ce8225692c705bb0dde88acb62bda6e688158 (diff) | |
| download | emacs-cb768704a459ab54632daf5bb1a10127a6a5c9f7.tar.gz emacs-cb768704a459ab54632daf5bb1a10127a6a5c9f7.zip | |
If kbd_buffer is becoming full, stop reading until it drains (Bug#6571).
* 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).
* process.h (hold_keyboard_input, unhold_keyboard_input)
(kbd_on_hold_p): Declare.
* 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.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 63b0dd0a53d..912a5a8d2f2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,24 @@ | |||
| 1 | 2010-07-07 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): New | ||
| 5 | 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-07-07 Eli Zaretskii <eliz@gnu.org> | 22 | 2010-07-07 Eli Zaretskii <eliz@gnu.org> |
| 2 | 23 | ||
| 3 | * msdos.h: | 24 | * msdos.h: |