# HG changeset patch # User Richard M. Stallman # Date 828038156 0 # Node ID 5025ab10c28ceda46680c21a0316e54c90815b60 # Parent 13c3adcb1c137645285813f56cbfda85e5b6b099 (last_timer_event): New variable. (timer_check): Set that variable. diff -r 13c3adcb1c13 -r 5025ab10c28c src/keyboard.c --- a/src/keyboard.c Thu Mar 28 18:23:18 1996 +0000 +++ b/src/keyboard.c Thu Mar 28 18:35:56 1996 +0000 @@ -2928,6 +2928,9 @@ EMACS_SET_SECS_USECS (timer_idleness_start_time, -1, -1); } +/* This is only for debugging. */ +struct input_event last_timer_event; + /* Check whether a timer has fired. To prevent larger problems we simply disregard elements that are not proper timers. Do not make a circular timer list for the time being. @@ -3122,6 +3125,8 @@ = Fcons (Fselected_frame (), chosen_timer); kbd_buffer_store_event (&event); + last_timer_event = event; + /* Tell caller to handle this event right away. */ events_generated = 1; EMACS_SET_SECS (nexttime, 0);