From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: ndame via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#39824: 26.2; timers sometimes stop working when coming back from sleep Date: Sun, 19 Apr 2020 15:54:51 +0000 Message-ID: References: <83imhvijes.fsf@gnu.org> Reply-To: ndame , ndame Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="46503"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "39824@debbugs.gnu.org" <39824@debbugs.gnu.org> To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 19 18:19:17 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jQCf7-000C05-I7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Apr 2020 18:19:17 +0200 Original-Received: from localhost ([::1]:43846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQCf6-0007hG-KD for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Apr 2020 12:19:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40466 helo=eggs1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQCet-0007gs-EP for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 12:19:03 -0400 Original-Received: from Debian-exim by eggs1p.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jQCes-0004s3-Mr for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 12:19:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34198) by eggs1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jQCes-0004rx-AY for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 12:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jQCes-0001xK-6i for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 12:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: ndame Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Apr 2020 16:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39824 X-GNU-PR-Package: emacs Original-Received: via spool by 39824-submit@debbugs.gnu.org id=B39824.15873131187489 (code B ref 39824); Sun, 19 Apr 2020 16:19:02 +0000 Original-Received: (at 39824) by debbugs.gnu.org; 19 Apr 2020 16:18:38 +0000 Original-Received: from localhost ([127.0.0.1]:45744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQCeT-0001wi-VY for submit@debbugs.gnu.org; Sun, 19 Apr 2020 12:18:38 -0400 Original-Received: from mail-40132.protonmail.ch ([185.70.40.132]:31918) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQCHf-0007jx-8u for 39824@debbugs.gnu.org; Sun, 19 Apr 2020 11:55:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1587311697; bh=I5swAmZRMxH9IUoLthK4tr/cZ0lJsJCxpyJKxDPuKug=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=D/oG45pSOQwopC2fVoeDxrq08rhdnzmXaTjxGsQGPjDdPC/bAPMN7a9rkVFBZ6byZ R1J4YLx+dZtvkrNzssZo+Ld8M2/WrTG1e0m5dJX9JKKpvjWq7FSCh5ocIX4adYcWJW rVpB84hevpo6Xuq8aG0wqUy8C3VF2irmE09f6rFo= In-Reply-To: <83imhvijes.fsf@gnu.org> X-Mailman-Approved-At: Sun, 19 Apr 2020 12:18:37 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:178649 Archived-At: > 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? Naturally, but in this case the timer stays in the timer list with an ever decreasing negative value. It won't fire again, but it will stay in the timer list. Anyway, I just wanted to explain which you asked earlier: "So the main question to be answered is: how come that t remained in the timer? I looked at timer-event-handler, the function we call to run the timer, and didn't see there any way we could fail to update the timer with nil after its function returns"