diff options
| author | Richard M. Stallman | 1996-03-28 18:35:56 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-03-28 18:35:56 +0000 |
| commit | e044e87cc7edd41f68ec2f8c7a7964952e9b39cf (patch) | |
| tree | d0cf824867f220f3b02d5301df0c8cb101178cd3 /src/keyboard.c | |
| parent | aba5d0f41c7550d601fa01cb22ed54860081bb02 (diff) | |
| download | emacs-e044e87cc7edd41f68ec2f8c7a7964952e9b39cf.tar.gz emacs-e044e87cc7edd41f68ec2f8c7a7964952e9b39cf.zip | |
(last_timer_event): New variable.
(timer_check): Set that variable.
Diffstat (limited to 'src/keyboard.c')
| -rw-r--r-- | src/keyboard.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 9a30170d18d..15f8eed53cb 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -2928,6 +2928,9 @@ timer_stop_idle () | |||
| 2928 | EMACS_SET_SECS_USECS (timer_idleness_start_time, -1, -1); | 2928 | EMACS_SET_SECS_USECS (timer_idleness_start_time, -1, -1); |
| 2929 | } | 2929 | } |
| 2930 | 2930 | ||
| 2931 | /* This is only for debugging. */ | ||
| 2932 | struct input_event last_timer_event; | ||
| 2933 | |||
| 2931 | /* Check whether a timer has fired. To prevent larger problems we simply | 2934 | /* Check whether a timer has fired. To prevent larger problems we simply |
| 2932 | disregard elements that are not proper timers. Do not make a circular | 2935 | disregard elements that are not proper timers. Do not make a circular |
| 2933 | timer list for the time being. | 2936 | timer list for the time being. |
| @@ -3122,6 +3125,8 @@ timer_check (do_it_now) | |||
| 3122 | = Fcons (Fselected_frame (), chosen_timer); | 3125 | = Fcons (Fselected_frame (), chosen_timer); |
| 3123 | kbd_buffer_store_event (&event); | 3126 | kbd_buffer_store_event (&event); |
| 3124 | 3127 | ||
| 3128 | last_timer_event = event; | ||
| 3129 | |||
| 3125 | /* Tell caller to handle this event right away. */ | 3130 | /* Tell caller to handle this event right away. */ |
| 3126 | events_generated = 1; | 3131 | events_generated = 1; |
| 3127 | EMACS_SET_SECS (nexttime, 0); | 3132 | EMACS_SET_SECS (nexttime, 0); |