From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ship Mints Newsgroups: gmane.emacs.bugs Subject: bug#75361: 31.0.50; run-with-idle-timer not working unless there is some activity Date: Sat, 4 Jan 2025 12:56:49 -0500 Message-ID: References: <87r05jpm38.fsf@gnu.support> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f49389062ae5228d" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13798"; 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 18:59:15 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 1tU8Qc-0003Tk-VA for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Jan 2025 18:59:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tU8QU-00020A-LG; Sat, 04 Jan 2025 12:59:06 -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 1tU8QQ-0001yw-Ok for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 12:59: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 1tU8QQ-0004cG-8N for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 12:59:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=R30r4TOcBW1cVW/U7/ynpgaLQ1aTktIoeYW2gdm+2Ec=; b=frtwwReWUgSqJvnMHaCe6fvoXZS1XAoV7TPGuX69rYKoPfeZwYCIEiY0R7wE0I+aBAMeeyrC6iB7UDIi8qHkQxuLbLtWRALYhjypWmg6kRL2Csje25UpRU4/eY+LKxBVL4O7WK4OPAPTg5pjaRUSzOHuLoH3fLWN2cvpOwpehdyOaooGDcLeTpHWPlVQyyIvkeDQRTdfrYvgclMNEC8Z3F/oYdlnJXcxHZo4K7o2EQ1gdAsUBLCIlO5ebyaOmPOy9cjEzL0a9DxMQRGY+3DLk6Lpd8S5vwWOvbSDINFpuVEU4I3tBxO1+ASxVwEncYO9+DWsiqYjEh7GGM5l1U8adQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tU8QP-0004m1-Sw for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 12:59:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ship Mints Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2025 17:59:01 +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.173601348718275 (code B ref 75361); Sat, 04 Jan 2025 17:59:01 +0000 Original-Received: (at 75361) by debbugs.gnu.org; 4 Jan 2025 17:58:07 +0000 Original-Received: from localhost ([127.0.0.1]:57203 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tU8PW-0004kg-OW for submit@debbugs.gnu.org; Sat, 04 Jan 2025 12:58:07 -0500 Original-Received: from mail-vk1-xa35.google.com ([2607:f8b0:4864:20::a35]:45243) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tU8PT-0004kK-GD for 75361@debbugs.gnu.org; Sat, 04 Jan 2025 12:58:05 -0500 Original-Received: by mail-vk1-xa35.google.com with SMTP id 71dfb90a1353d-51bc2363fd7so2682657e0c.2 for <75361@debbugs.gnu.org>; Sat, 04 Jan 2025 09:58:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736013483; x=1736618283; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=R30r4TOcBW1cVW/U7/ynpgaLQ1aTktIoeYW2gdm+2Ec=; b=WLW8ck/i6697ygx+S2mFPELR6JkSyrZNj+AuCTqYoQXi1ZWkWvT6WbnoPXY6jvA6aW z83U+BwuD5BRh5Ylm1gyhpEB4HBa/tQ3BW6d24pbWySrHuphXtJ1qMZiK6KRrsQO++4/ LY/NY8E0t0RJbLxz7Mgry/8bPk3urSUanLt34JvdObSa/vEsiZgqFYbStWdKRb5R9RgP 1jT4zGz40J8KiPDpbPfoepSHVu7FDhF+FLovb00NWWIOiTLoS5Atl5kNS0QTuAQhWJm8 qBMFlH2dTH6iV8O4vwHkjAVefHoT20HDh/UdNzO3hfjcVPIm8dOfNG5fI+kuYH9vKwq6 tWwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736013483; x=1736618283; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=R30r4TOcBW1cVW/U7/ynpgaLQ1aTktIoeYW2gdm+2Ec=; b=l9qSCTyYHHXyd44GZOMasGS6ZZG7dY6eTDbs6vOmiiW0uKWAxU0UKdG2sE55dzwlRv hi9rqa5rhkie4QdVRW8XAS3bdyKnlWsrhRvTOgJub4IhWPGlrWG2F8M7G8BAzz6eQ5va meinIYhyzzs2IiHtdV+VcTryoAauHAFcacEfPTl01IXspoLETWsPKAqEmZTzAkQBCKzW jHfyy4Z6kVhnXvMeAqeH3czn9mwU1VMDVPr6NcWpeBE0gy/soDxEx9BJOJvFLioI4Khe byDEPMad6LiRBxXzL09q+TEE4gJVHYrCtLSVNVzF0tFUck20Jhuvt3ZrUzu1A/V4g0uu vT7Q== X-Gm-Message-State: AOJu0Yym8hrN98CgvyW9YNMaHDTKq+Zm61lNKCdL9AzYoTpCFoGaLieB 8RWEwEJFApx3DKVrPv9Ad7Ze6S3TSYMxlalx3p8e59d++AdUD7SR2+7KrCoPiP1t3nFHX4wQd70 /EnA66XtuEChZHy0BxzWgQtIaIhA= X-Gm-Gg: ASbGncsDfX+K1T0aK4Bg+RoMv/S2Dat6//U7pSXwUmWGhu89jSB3pPOfqd5wXEl/EWk dxsdEVuwUbDJdKoLSJF5kNhlvnyjIICyB3gFKnQ== X-Google-Smtp-Source: AGHT+IEE51rN1MYE1OIYVy7hu7jthgNniVQAQK955TxxmByc4tfLC1NbNKmP4SX0iF9QLMY1CQm6fomhAdv7HWy3O1Y= X-Received: by 2002:a05:6102:e0e:b0:4b2:9e8b:54c with SMTP id ada2fe7eead31-4b2cc488c39mr38603768137.24.1736013482593; Sat, 04 Jan 2025 09:58:02 -0800 (PST) In-Reply-To: <87r05jpm38.fsf@gnu.support> 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:298442 Archived-At: --000000000000f49389062ae5228d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I believe this is intended behavior. You should use a regular interval timer if you want repeating executions that do not depend upon Emacs entering the idle state. Not sure why you think this worked differently in the recent past. "Emacs becomes *idle* when it starts waiting for user input (unless it waits for input with a timeout, see 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." On Sat, Jan 4, 2025 at 12:39=E2=80=AFPM Jean Louis wrote= : > > 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 is bug. > > It should be repeating the message each 10 seconds. > > > In GNU Emacs 31.0.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version > 3.24.38, cairo version 1.16.0) of 2024-12-05 built on lco2 > Repository revision: 25b4bf7fcd75564f23b2e60e29e8ff7354186371 > Repository branch: master > Windowing system distributor 'The X.Org Foundation', version 11.0.1210100= 7 > System Description: Debian GNU/Linux 12 (bookworm) > > Configured using: > 'configure --with-mailutils --with-native-compilation=3Dyes > --with-tree-sitter --with-imagemagick' > > Configured features: > ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ > IMAGEMAGICK JPEG LCMS2 LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY > INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF > TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB > > Important settings: > value of $LC_ALL: en_US.UTF-8 > value of $LC_COLLATE: en_US.UTF-8 > value of $LC_CTYPE: en_US.UTF-8 > value of $LC_MESSAGES: en_US.UTF-8 > value of $LANG: de_DE.UTF-8 > value of $XMODIFIERS: @im=3Dexwm-xim > locale-coding-system: utf-8-unix > > Major mode: Lisp Interaction > > Minor modes in effect: > tooltip-mode: t > global-eldoc-mode: t > eldoc-mode: t > show-paren-mode: t > electric-indent-mode: t > mouse-wheel-mode: t > tool-bar-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > blink-cursor-mode: t > minibuffer-regexp-mode: t > line-number-mode: t > indent-tabs-mode: t > transient-mark-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > > Load-path shadows: > None found. > > Features: > (shadow sort mail-extr emacsbug message mailcap yank-media puny dired > dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 > epg-config gnus-util time-date subr-x mm-decode mm-bodies mm-encode > mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 > rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-print debug > backtrace find-func misearch multi-isearch cl-extra shortdoc > text-property-search comp-common rx help-fns byte-opt gv bytecomp > byte-compile radix-tree help-mode leuven-dark-theme cus-theme cus-edit > pp cus-start cus-load icons wid-edit cl-loaddefs cl-lib rmc iso-transl > tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks > lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd > touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list > replace newcomment text-mode lisp-mode prog-mode register page tab-bar > menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse > jit-lock font-lock syntax font-core term/tty-colors frame minibuffer > nadvice seq simple cl-generic indonesian philippine cham georgian > utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean > japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european > ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop > case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure > cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp > files window text-properties overlay sha1 md5 base64 format env > code-pages mule custom widget keymap hashtable-print-readable backquote > threads dbusbind inotify lcms2 dynamic-setting system-font-setting > font-render-setting cairo gtk x-toolkit xinput2 x multi-tty move-toolbar > make-network-process native-compile emacs) > > Memory information: > ((conses 16 117793 13718) (symbols 48 9320 2) (strings 32 26053 2808) > (string-bytes 1 732164) (vectors 16 13753) > (vector-slots 8 184380 13787) (floats 8 123 18) (intervals 56 540 20) > (buffers 992 15)) > > -- > Jean Louis > > > > --000000000000f49389062ae5228d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I believe this is intended behavior. You should use a regular interval t= imer if you want repeating executions that=C2=A0do=C2=A0not depend upon Ema= cs entering the idle state. Not sure why you think this worked differently = in the recent past.

"Emacs becomes=C2=A0idle=C2=A0when it starts waiting for use= r input (unless it waits for input with a timeout, see=C2=A0Reading One Event), and it remains idle until the user provi= des some input. If a timer is set for five seconds of idleness, it runs app= roximately five seconds after Emacs first becomes idle. Even if=C2=A0repeat=C2=A0is non-nil, this timer will not run ag= ain as long as Emacs remains idle, because the duration of idleness will co= ntinue to increase and will not go down to five seconds again."=

=

On Sat, Jan 4, 2025 at 12:39=E2=80=AFPM Jean Louis &l= t;bugs@gnu.support> wrote:

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 ()
=C2=A0 =C2=A0 (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 is bug.

It should be repeating the message each 10 seconds.


In GNU Emacs 31.0.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version
=C2=A03.24.38, cairo version 1.16.0) of 2024-12-05 built on lco2
Repository revision: 25b4bf7fcd75564f23b2e60e29e8ff7354186371
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.1= 2101007
System Description: Debian GNU/Linux 12 (bookworm)

Configured using:
=C2=A0'configure --with-mailutils --with-native-compilation=3Dyes
=C2=A0--with-tree-sitter --with-imagemagick'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ
IMAGEMAGICK JPEG LCMS2 LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB

Important settings:
=C2=A0 value of $LC_ALL: en_US.UTF-8
=C2=A0 value of $LC_COLLATE: en_US.UTF-8
=C2=A0 value of $LC_CTYPE: en_US.UTF-8
=C2=A0 value of $LC_MESSAGES: en_US.UTF-8
=C2=A0 value of $LANG: de_DE.UTF-8
=C2=A0 value of $XMODIFIERS: @im=3Dexwm-xim
=C2=A0 locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 eldoc-mode: t
=C2=A0 show-paren-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 minibuffer-regexp-mode: t
=C2=A0 line-number-mode: t
=C2=A0 indent-tabs-mode: t
=C2=A0 transient-mark-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util time-date subr-x mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-print debug
backtrace find-func misearch multi-isearch cl-extra shortdoc
text-property-search comp-common rx help-fns byte-opt gv bytecomp
byte-compile radix-tree help-mode leuven-dark-theme cus-theme cus-edit
pp cus-start cus-load icons wid-edit cl-loaddefs cl-lib rmc iso-transl
tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks
lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar
menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse
jit-lock font-lock syntax font-core term/tty-colors frame minibuffer
nadvice seq simple cl-generic indonesian philippine cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure
cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp
files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget keymap hashtable-print-readable backquote
threads dbusbind inotify lcms2 dynamic-setting system-font-setting
font-render-setting cairo gtk x-toolkit xinput2 x multi-tty move-toolbar make-network-process native-compile emacs)

Memory information:
((conses 16 117793 13718) (symbols 48 9320 2) (strings 32 26053 2808)
=C2=A0(string-bytes 1 732164) (vectors 16 13753)
=C2=A0(vector-slots 8 184380 13787) (floats 8 123 18) (intervals 56 540 20)=
=C2=A0(buffers 992 15))

--
Jean Louis



--000000000000f49389062ae5228d--