Mercurial > emacs
comparison src/keyboard.c @ 14904:5025ab10c28c
(last_timer_event): New variable.
(timer_check): Set that variable.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 28 Mar 1996 18:35:56 +0000 |
parents | 045d60026d13 |
children | 51a773474d47 |
comparison
equal
deleted
inserted
replaced
14903:13c3adcb1c13 | 14904:5025ab10c28c |
---|---|
2926 timer_stop_idle () | 2926 timer_stop_idle () |
2927 { | 2927 { |
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. |
2934 | 2937 |
2935 Returns the number of seconds to wait until the next timer fires. If a | 2938 Returns the number of seconds to wait until the next timer fires. If a |
3119 event.timestamp = triggertime; | 3122 event.timestamp = triggertime; |
3120 /* Store the timer in the frame slot. */ | 3123 /* Store the timer in the frame slot. */ |
3121 event.frame_or_window | 3124 event.frame_or_window |
3122 = Fcons (Fselected_frame (), chosen_timer); | 3125 = Fcons (Fselected_frame (), chosen_timer); |
3123 kbd_buffer_store_event (&event); | 3126 kbd_buffer_store_event (&event); |
3127 | |
3128 last_timer_event = event; | |
3124 | 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); |
3128 EMACS_SET_USECS (nexttime, 0); | 3133 EMACS_SET_USECS (nexttime, 0); |