GNU bug report logs - #39099
26.3; display-time delay after PC sleep

Previous Next

Package: emacs;

Reported by: ynyaaa <at> gmail.com

Date: Sun, 12 Jan 2020 13:43:02 UTC

Severity: normal

Found in version 26.3

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: ynyaaa <at> gmail.com
Cc: Stefan Kangas <stefan <at> marxist.se>, 39099 <at> debbugs.gnu.org
Subject: bug#39099: 26.3; display-time delay after PC sleep
Date: Mon, 30 Aug 2021 03:46:41 +0200
Lars Ingebrigtsen <larsi <at> 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




This bug report was last modified 3 years and 263 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.