From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#75361: 31.0.50; run-with-idle-timer not working unless there is some activity Date: Sat, 04 Jan 2025 20:46:22 +0200 Message-ID: <86o70mbeo1.fsf@gnu.org> References: <87r05jpm38.fsf@gnu.support> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19897"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 75361@debbugs.gnu.org To: Jean Louis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 04 19:47:28 2025 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 1tU9BI-00051k-Cg for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Jan 2025 19:47:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tU9Av-0002kw-5l; Sat, 04 Jan 2025 13:47:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tU9As-0002k5-MK for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 13:47:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tU9As-0005KX-Dp for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 13:47:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=m1AuWeoU+rV3zdTt1IdWWFBS+vIk/4HTtTcv5OdUIQI=; b=Ubrwj2OjlN0zaBkrsxWbP8THmL8UoJQ5FTR8uJii0G6tRYl13P8CZRX7ZUD5hWZ3SvPWqKUTAtNgWy393ETcKu4aTwYkpINWeUQBCtYkK/geCibp3VkwkHQ0iLQ+CfE5+nrho/x5Iif71FuZRASjA3KMovTQXaqmCYrs22hOV9MAV/tFLvxsR07ImWxVB6ekbQ5P7YoDRHg1b/3lcgCCkUzhT+RPV7U/SSK99dYvkP0Jf65oG1Qx98pvYazcK9OHQmXn4q+uWDlA7+PngeHEh1oez/YZj5sM+DAE8gkQr2wQ5Co/atHNdpxgnlExGI3BJJ9zEIvg9/HhE6kd4b0C4A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tU9As-00070j-6n for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 13:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2025 18:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75361 X-GNU-PR-Package: emacs Original-Received: via spool by 75361-submit@debbugs.gnu.org id=B75361.173601639626907 (code B ref 75361); Sat, 04 Jan 2025 18:47:02 +0000 Original-Received: (at 75361) by debbugs.gnu.org; 4 Jan 2025 18:46:36 +0000 Original-Received: from localhost ([127.0.0.1]:57356 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tU9AR-0006zu-Nb for submit@debbugs.gnu.org; Sat, 04 Jan 2025 13:46:36 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34324) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tU9AN-0006zP-DV; Sat, 04 Jan 2025 13:46:34 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tU9AH-0005Hl-JO; Sat, 04 Jan 2025 13:46:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=m1AuWeoU+rV3zdTt1IdWWFBS+vIk/4HTtTcv5OdUIQI=; b=MSaeRYryCjdq7Rah5kd+ ehdfT/wrp8GTXdun3qkbvE5DEqYAHgjmNorbFPOUCduC3DuplGSsm9tNzTlngMEIBXwL2xZ5P651y pRzq08IA81HBBMCkm4q6/Tv5nd266Nm3lGnUARv800fBk3zroCkEZb4UZOfjFXGI5jPWnO6FTIfv4 umaZuL5Xw88D41lb8tJVuxXbZE6ssosgc/hScXoXfsMIZEpH6d3aL/ZT5HllAekEb1NmfCj+eZAbr nI0i2LqoalEe3ix28/Ud1t/YtK94vFf/vFYg0VwWZ8KfFeAsI3XJJe2P4izThKJQfdVEA514PUc6W qJXfRZiPrzyNkQ==; In-Reply-To: <87r05jpm38.fsf@gnu.support> (message from Jean Louis on Sat, 04 Jan 2025 01:30:03 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298448 Archived-At: tags 75361 notabug thanks > From: Jean Louis > Date: Sat, 04 Jan 2025 01:30:03 +0300 > > > The function is not working unless there is some activity. I remember it > worked well in past, do not know what changed. > > (defun my-message () > (message (format-time-string "%T Hello"))) > > (run-with-idle-timer 10 t 'my-message) > > >From that point I will see one hello message but if I do not touch > anything it will not repeat. That's expected. From the ELisp manual: Emacs becomes “idle” when it starts waiting for user input (unless it waits for input with a timeout, *note Reading One Event::), and it remains idle until the user provides some input. If a timer is set for five seconds of idleness, it runs approximately five seconds after Emacs first becomes idle. Even if REPEAT is non-‘nil’, this timer will not run again as long as Emacs remains idle, because the duration of idleness will continue to increase and will not go down to five seconds again. > That is bug. > > It should be repeating the message each 10 seconds. See above: your expectations are incorrect. This is not a bug.