unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#39824: 26.2; timers sometimes stop working when coming back from sleep
@ 2020-02-28 15:52 ndame
  2020-03-01 19:31 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 24+ messages in thread
From: ndame @ 2020-02-28 15:52 UTC (permalink / raw)
  To: 39824

[-- Attachment #1: Type: text/plain, Size: 841 bytes --]

I use Emacs 26.2 on Windows and usually I send my computer to sleep,
instead of switching it off. That means the same Emacs instance runs
for weeks or even months unless Emacs crashes for some reason.

I use several timers for housekeeping tasks and they usually work, but
from time to time one of them fails to start after coming back from
sleep.

When I do an M-x list-timers the affected timer is still there, but
its value in the Next column is negative. The value keeps decreasing
like for other timers, but since the value is negative it gets farther
and farther from zero, so it never fires after that.

I assume some calculation between the real time and the expected
elapsed time sets the timer value to negative after sleep.

A possible fix may be to ensure that the Next value of the timer
cannot be negative.
 

[-- Attachment #2: Type: text/html, Size: 935 bytes --]

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2020-08-23 13:36 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-28 15:52 bug#39824: 26.2; timers sometimes stop working when coming back from sleep ndame
2020-03-01 19:31 ` Eli Zaretskii
2020-03-02  5:22   ` ndame
2020-03-02  5:29     ` ndame
2020-03-06  9:14     ` Eli Zaretskii
2020-03-06 16:30       ` ndame
2020-03-06 17:07         ` Eli Zaretskii
2020-03-21  9:23           ` Gijs Hillenius
2020-03-24  8:27       ` Gijs Hillenius
2020-03-25 14:37         ` Eli Zaretskii
2020-03-25 14:55           ` Gijs Hillenius
2020-04-01  7:09           ` Gijs Hillenius
2020-04-03 12:35             ` Eli Zaretskii
2020-04-08 14:54           ` bug#39824: I can't reproduce this any longer (was: bug#39824: 26.2; timers sometimes stop working when coming back from sleep) Gijs Hillenius
2020-04-08 15:11             ` Eli Zaretskii
2020-04-19 13:28 ` bug#39824: 26.2; timers sometimes stop working when coming back from sleep ndame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-04-19 13:59 ` ndame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-04-19 15:28   ` Eli Zaretskii
2020-04-19 15:54     ` ndame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-04-19 16:46       ` Eli Zaretskii
2020-04-19 17:34         ` ndame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-04-19 18:53           ` Eli Zaretskii
     [not found]             ` <CADwFkm=i7zz8xjw=RcbFg7evQqBFpMY5phHEJnfQk+n75Y2LRg@mail.gmail.com>
2020-08-23 12:58               ` Eli Zaretskii
2020-08-23 13:36                 ` Stefan Kangas

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).