From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#35400: 27.0.50; Timers repeated after waking from suspend Date: Tue, 23 Apr 2019 20:30:19 +0300 Message-ID: <834l6o4ok4.fsf@gnu.org> References: Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="172187"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 35400@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 23 19:41:01 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hIzPg-000icY-Fp for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Apr 2019 19:41:00 +0200 Original-Received: from localhost ([127.0.0.1]:57296 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIzPf-0002dn-Do for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Apr 2019 13:40:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIzMU-00081U-5r for bug-gnu-emacs@gnu.org; Tue, 23 Apr 2019 13:37:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hIzG2-0004b5-Bk for bug-gnu-emacs@gnu.org; Tue, 23 Apr 2019 13:31:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40726) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hIzG1-0004af-My for bug-gnu-emacs@gnu.org; Tue, 23 Apr 2019 13:31:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hIzG1-0004zg-Ir for bug-gnu-emacs@gnu.org; Tue, 23 Apr 2019 13:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Apr 2019 17:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35400 X-GNU-PR-Package: emacs Original-Received: via spool by 35400-submit@debbugs.gnu.org id=B35400.155604064519163 (code B ref 35400); Tue, 23 Apr 2019 17:31:01 +0000 Original-Received: (at 35400) by debbugs.gnu.org; 23 Apr 2019 17:30:45 +0000 Original-Received: from localhost ([127.0.0.1]:54267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIzFk-0004yy-Hz for submit@debbugs.gnu.org; Tue, 23 Apr 2019 13:30:44 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIzFj-0004yn-Hp for 35400@debbugs.gnu.org; Tue, 23 Apr 2019 13:30:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIzFa-0004Bu-5i; Tue, 23 Apr 2019 13:30:36 -0400 Original-Received: from [176.228.60.248] (port=4411 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hIzFU-0004G3-QH; Tue, 23 Apr 2019 13:30:30 -0400 In-reply-to: (message from Stefan Monnier on Tue, 23 Apr 2019 12:59:42 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:158152 Archived-At: > From: Stefan Monnier > Date: Tue, 23 Apr 2019 12:59:42 -0400 > > now wait a minute and then > > kill -CONT > > and you should see something like: > > Run at: 12:49:40 [7 times] > > in the *Messages* buffer, before all the repetitions that couldn't be > run while Emacs was suspended are run when we wake up. > > Apparently this is *not* a new behavior (I can reproduce it with > Debian's 26.1) although I only recently started noticing it. > > If we decide to consider this a feature (I guess there can be > circumstances where it might make sense, tho I'm not sure those would > really work well with the way we handle timers), I think we should > provide some way for users of timers to indicate whether they want to > use this feature or not (and I think it makes sense to default to not > using this feature). I think you can already control this by customizing the value of timer-max-repeats. It is 10 by default, so you should never see more than 10 repetitions, no matter how long was Emacs suspended.