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

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

bug#39099: 26.3; display-time delay after PC sleep


From: Lars Ingebrigtsen
Subject: bug#39099: 26.3; display-time delay after PC sleep
Date: Mon, 30 Aug 2021 03:46:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> I had a look at the function, and I couldn't see anything obviously
> wrong with it.

Ah, no -- I misread the timer code.  It's only computing the first
repeat length (to get us to the integral multiple), but after that, it
doesn't recompute how long it should be to the next.  So if we sleep for
103 second, then we'll fire immediately upon waking up, and then fire
every 60 seconds after that.

So to get this right, the timer machinery would have to recompute the
repeat to bring us back to the integral multiple...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

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