diff options
| author | Tim Ruffing | 2023-12-27 14:29:34 +0100 |
|---|---|---|
| committer | Stefan Monnier | 2024-03-10 10:40:07 -0400 |
| commit | 385a02cffde6d0fd80ff189704ad70cfebc3e8d4 (patch) | |
| tree | 27fe62dd85ca663e5fbcff8fc686bfbccc52213e /src/keyboard.c | |
| parent | fbc5fb2561d9e1d4e5b69b349a26c49d30ffc938 (diff) | |
| download | emacs-385a02cffde6d0fd80ff189704ad70cfebc3e8d4.tar.gz emacs-385a02cffde6d0fd80ff189704ad70cfebc3e8d4.zip | |
* src/keyboard.c (requeued_events_pending_p): Improve name and fix comment
* src/keyboard.c, src/keyboard.h (requeued_events_pending_p): Rename to
'requeued_command_events_pending_p' to clarify that the function covers
only command events. Fix wrong comment that claimed that the function
was unused.
* src/process.c (wait_reading_process_output): Update caller to use the
new name.
Diffstat (limited to 'src/keyboard.c')
| -rw-r--r-- | src/keyboard.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index b6fc568cde5..e5efde4ef53 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -11565,14 +11565,10 @@ clear_input_pending (void) | |||
| 11565 | input_pending = false; | 11565 | input_pending = false; |
| 11566 | } | 11566 | } |
| 11567 | 11567 | ||
| 11568 | /* Return true if there are pending requeued events. | 11568 | /* Return true if there are pending requeued command events. */ |
| 11569 | This isn't used yet. The hope is to make wait_reading_process_output | ||
| 11570 | call it, and return if it runs Lisp code that unreads something. | ||
| 11571 | The problem is, kbd_buffer_get_event needs to be fixed to know what | ||
| 11572 | to do in that case. It isn't trivial. */ | ||
| 11573 | 11569 | ||
| 11574 | bool | 11570 | bool |
| 11575 | requeued_events_pending_p (void) | 11571 | requeued_command_events_pending_p (void) |
| 11576 | { | 11572 | { |
| 11577 | return (CONSP (Vunread_command_events)); | 11573 | return (CONSP (Vunread_command_events)); |
| 11578 | } | 11574 | } |