GNU logs - #35400, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#35400: 27.0.50; Timers repeated after waking from suspend
Resent-From: Stefan Monnier <monnier@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 23 Apr 2019 17:00:02 +0000
Resent-Message-ID: <handler.35400.B.155603879516295 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 35400
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 35400 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.155603879516295
          (code B ref -1); Tue, 23 Apr 2019 17:00:02 +0000
Received: (at submit) by debbugs.gnu.org; 23 Apr 2019 16:59:55 +0000
Received: from localhost ([127.0.0.1]:54222 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hIylu-0004El-Se
	for submit <at> debbugs.gnu.org; Tue, 23 Apr 2019 12:59:55 -0400
Received: from eggs.gnu.org ([209.51.188.92]:42029)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1hIyls-0004EX-Ix
 for submit <at> debbugs.gnu.org; Tue, 23 Apr 2019 12:59:53 -0400
Received: from lists.gnu.org ([209.51.188.17]:58990)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <monnier@HIDDEN>)
 id 1hIyln-00068G-75
 for submit <at> debbugs.gnu.org; Tue, 23 Apr 2019 12:59:47 -0400
Received: from eggs.gnu.org ([209.51.188.92]:56382)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <monnier@HIDDEN>) id 1hIylm-0007h7-3I
 for bug-gnu-emacs@HIDDEN; Tue, 23 Apr 2019 12:59:47 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <monnier@HIDDEN>) id 1hIyll-000652-32
 for bug-gnu-emacs@HIDDEN; Tue, 23 Apr 2019 12:59:46 -0400
Received: from alt24.smtp-out.videotron.ca ([70.80.0.75]:34380)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <monnier@HIDDEN>)
 id 1hIylk-000632-SY
 for bug-gnu-emacs@HIDDEN; Tue, 23 Apr 2019 12:59:44 -0400
Received: from fmsmemgm.homelinux.net ([24.203.163.157]) by Videotron with SMTP
 id Iylihzs1RHTT3IyljhWyX9; Tue, 23 Apr 2019 12:59:44 -0400
X-Authority-Analysis: v=2.3 cv=ZegzyPdA c=1 sm=1 tr=0
 a=271BjrAMcq2W4n6OKK/JJg==:117 a=271BjrAMcq2W4n6OKK/JJg==:17
 a=oexKYjalfGEA:10 a=aR16PxjQAAAA:8 a=RB2lgiZKs_l3Kn8TLNgA:9
 a=zbFvvTOBjyH4ze5LlUjX:22
Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848)
 id B0A13AE1E3; Tue, 23 Apr 2019 12:59:42 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
Date: Tue, 23 Apr 2019 12:59:42 -0400
Message-ID: <jwvtveowtc1.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-CMAE-Envelope: MS4wfJGRgS4IbwoLWABKl33iYeZSzs16Ear0UrPGvMxx6DpbbUFenWaJEfu+LAGkMpDJ4PaQQKJl73PYHmESZLKDtO+GA0MQDZueIJ+h/W9nvDcB1fIA6OaS
 5SewftEZzSvxRNJJJpUcCC2Z+WlDg/07zbFwV6Cis6WXtYaRu00HpHCNP5bEhcbQA/Meu6nM+CiTqg==
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 70.80.0.75
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: -1.3 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Package: Emacs
Version: 27.0.50


If Emacs is prevented from running for a "long" time (via the `STOP`
signal, C-z, suspend-to-ram, thrashing, you name it), the "missed"
repetitions of timer events all get run when we wake up.

E.g. you can try the following:

    % emacs -Q
    (run-with-timer 5 5 (lambda () (message "Run at: %s" (format-time-string "%H:%M:%S"))))
    C-j
    C-x b *Messages* RET
    
you should see a message emitted every 5 seconds.  Then do:

    kill -STOP <emacs-pid>
    
now wait a minute and then

    kill -CONT <emacs-pid>

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).


        Stefan



In GNU Emacs 27.0.50 (build 1, x86_64-unknown-linux-gnu, GTK+ Version 3.24.5)
 of 2019-04-14 built on alfajor
Repository revision: bd7668ee53b3597ee229afd83e18b6cdb6315056
Repository branch: work
Windowing system distributor 'The X.Org Foundation', version 11.0.12003000
System Description: Debian GNU/Linux buster/sid

Recent messages:
Mark set
Mark activated
Mark set
Auto-saving...done
Saving file /home/monnier/src/emacs/elpa/packages/smalltalk-mode/smalltalk-mode.el...
Wrote /home/monnier/src/emacs/elpa/packages/smalltalk-mode/smalltalk-mode.el
Saving file /home/monnier/share/etc/diary...
Wrote /home/monnier/share/etc/diary
Marking diary entries...done
(New file)




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Stefan Monnier <monnier@HIDDEN>
Subject: bug#35400: Acknowledgement (27.0.50; Timers repeated after waking
 from suspend)
Message-ID: <handler.35400.B.155603879516295.ack <at> debbugs.gnu.org>
References: <jwvtveowtc1.fsf@HIDDEN>
X-Gnu-PR-Message: ack 35400
X-Gnu-PR-Package: emacs
Reply-To: 35400 <at> debbugs.gnu.org
Date: Tue, 23 Apr 2019 17:00:04 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 35400 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
35400: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D35400
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#35400: 27.0.50; Timers repeated after waking from suspend
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 23 Apr 2019 17:31:01 +0000
Resent-Message-ID: <handler.35400.B35400.155604064519163 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 35400
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Stefan Monnier <monnier@HIDDEN>
Cc: 35400 <at> debbugs.gnu.org
Received: via spool by 35400-submit <at> debbugs.gnu.org id=B35400.155604064519163
          (code B ref 35400); Tue, 23 Apr 2019 17:31:01 +0000
Received: (at 35400) by debbugs.gnu.org; 23 Apr 2019 17:30:45 +0000
Received: from localhost ([127.0.0.1]:54267 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hIzFk-0004yy-Hz
	for submit <at> debbugs.gnu.org; Tue, 23 Apr 2019 13:30:44 -0400
Received: from eggs.gnu.org ([209.51.188.92]:33386)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1hIzFj-0004yn-Hp
 for 35400 <at> debbugs.gnu.org; Tue, 23 Apr 2019 13:30:43 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:38843)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1hIzFa-0004Bu-5i; Tue, 23 Apr 2019 13:30:36 -0400
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 <eliz@HIDDEN>)
 id 1hIzFU-0004G3-QH; Tue, 23 Apr 2019 13:30:30 -0400
Date: Tue, 23 Apr 2019 20:30:19 +0300
Message-Id: <834l6o4ok4.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-reply-to: <jwvtveowtc1.fsf@HIDDEN> (message from Stefan Monnier
 on Tue, 23 Apr 2019 12:59:42 -0400)
References: <jwvtveowtc1.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Stefan Monnier <monnier@HIDDEN>
> Date: Tue, 23 Apr 2019 12:59:42 -0400
> 
> now wait a minute and then
> 
>     kill -CONT <emacs-pid>
> 
> 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.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#35400: 27.0.50; Timers repeated after waking from suspend
Resent-From: Lars Ingebrigtsen <larsi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 02 Feb 2021 14:35:01 +0000
Resent-Message-ID: <handler.35400.B35400.161227646532683 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 35400
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: Stefan Monnier <monnier@HIDDEN>, 35400 <at> debbugs.gnu.org
Received: via spool by 35400-submit <at> debbugs.gnu.org id=B35400.161227646532683
          (code B ref 35400); Tue, 02 Feb 2021 14:35:01 +0000
Received: (at 35400) by debbugs.gnu.org; 2 Feb 2021 14:34:25 +0000
Received: from localhost ([127.0.0.1]:34408 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1l6wl6-0008V4-MC
	for submit <at> debbugs.gnu.org; Tue, 02 Feb 2021 09:34:24 -0500
Received: from quimby.gnus.org ([95.216.78.240]:33314)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1l6wl4-0008Uq-GH
 for 35400 <at> debbugs.gnu.org; Tue, 02 Feb 2021 09:34:23 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=sKXGiLMJvYn693NCIlCf9ywHRQiFgrvZ/JSCXRhyIjI=; b=fZNn7mcPeE2Yk0BWWkk5NIvNa4
 nKbnVPSTSdRUFNq5kkgHLCWjk5X6idsMziT77vvMurbj0jzxcq+VI32Eh1OJaiEs9V/RCIJlFYPbR
 wKfO0zucY0PsKnCatIFL75Kc7Ha56+nk9uQ01Q0/JIqPscS1oh+siYNBGc6tUy2G7/Uo=;
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1l6wku-0005Co-AS; Tue, 02 Feb 2021 15:34:15 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
References: <jwvtveowtc1.fsf@HIDDEN> <834l6o4ok4.fsf@HIDDEN>
X-Now-Playing: Timothy Leary*'s _Beautiful Freaks: Waving Our Flag High:
 When Music Was The Counterculture_: "Part II: One Final Word"
Date: Tue, 02 Feb 2021 15:34:11 +0100
In-Reply-To: <834l6o4ok4.fsf@HIDDEN> (Eli Zaretskii's message of "Tue, 23 Apr
 2019 20:30:19 +0300")
Message-ID: <87y2g6lesc.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Eli Zaretskii <eliz@HIDDEN> writes: >> 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 [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> 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.

Right, so the only question here is whether to change the value of that
variable (to not repeat).  I think that would certainly be less
surprising, but I'm not sure whether that would break people's code or
not?

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





Last modified: Tue, 2 Feb 2021 14:45:01 UTC

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