From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#39824: 26.2; timers sometimes stop working when coming back from sleep Date: Sun, 19 Apr 2020 18:28:59 +0300 Message-ID: <83imhvijes.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="104489"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39824@debbugs.gnu.org To: ndame , ndame Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 19 17:30:11 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 1jQBtb-000R7S-4G for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Apr 2020 17:30:11 +0200 Original-Received: from localhost ([::1]:43000 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQBta-0000ZA-7F for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Apr 2020 11:30:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59594) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQBtT-0000Ys-6E for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 11:30:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jQBtS-0005jU-QN for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 11:30:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34156) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jQBtS-0005jB-DU for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 11:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jQBtS-0007As-96 for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 11:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Apr 2020 15:30: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.158731015327496 (code B ref 39824); Sun, 19 Apr 2020 15:30:02 +0000 Original-Received: (at 39824) by debbugs.gnu.org; 19 Apr 2020 15:29:13 +0000 Original-Received: from localhost ([127.0.0.1]:45702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQBsf-00079Q-HY for submit@debbugs.gnu.org; Sun, 19 Apr 2020 11:29:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQBsd-00079C-58 for 39824@debbugs.gnu.org; Sun, 19 Apr 2020 11:29:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52726) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQBsX-0004kI-Tc; Sun, 19 Apr 2020 11:29:05 -0400 Original-Received: from [176.228.60.248] (port=2313 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jQBsX-0004Vu-7s; Sun, 19 Apr 2020 11:29:05 -0400 In-Reply-To: (bug-gnu-emacs@gnu.org) 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:178644 Archived-At: > Date: Sun, 19 Apr 2020 13:59:23 +0000 > From: ndame via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > 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?