bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#39824: 26.2; timers sometimes stop working when coming back from sle


From: Eli Zaretskii
Subject: bug#39824: 26.2; timers sometimes stop working when coming back from sleep
Date: Sun, 19 Apr 2020 18:28:59 +0300

> Date: Sun, 19 Apr 2020 13:59:23 +0000
> From: ndame via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> If you run a timer with an error:
> 
> (run-with-timer 0 1 (lambda ()
>                       (print garbage)))
> 
> then the backtrace window comes up. If you press q there then you'll have a 
> negative timer 
> in the list.
> 
> This probably is because function timer-event-handler uses 
> condition-case-unless-debug, 
> so if you  press q then you go back to top level and the rest of the code 
> doesn't run.
> 
> I understand condition-case-unless-debug is used, so one can debug a timer, 
> but on the 
> other hand if debug is on for some other reason and the user press q  
> automatically
> to get rid of the backtrace window then the timer list will have some garbage 
> in it.

If a timer signals an error, it is TRT to disable it, right?
Otherwise, it will keep signaling errors over and over and over again,
right?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]