From: Eli Zaretskii <eliz@gnu.org>
To: Jean Louis <bugs@gnu.support>
Cc: 75361@debbugs.gnu.org
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 [thread overview]
Message-ID: <86o70mbeo1.fsf@gnu.org> (raw)
In-Reply-To: <87r05jpm38.fsf@gnu.support> (message from Jean Louis on Sat, 04 Jan 2025 01:30:03 +0300)
tags 75361 notabug
thanks
> From: Jean Louis <bugs@gnu.support>
> 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.
next prev parent reply other threads:[~2025-01-04 18:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-03 22:30 bug#75361: 31.0.50; run-with-idle-timer not working unless there is some activity Jean Louis
2025-01-04 17:56 ` Ship Mints
2025-01-04 19:21 ` bug#75361: SOLVED - " Jean Louis
2025-01-06 20:47 ` Ship Mints
2025-01-04 18:46 ` Eli Zaretskii [this message]
2025-01-06 21:28 ` Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86o70mbeo1.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=75361@debbugs.gnu.org \
--cc=bugs@gnu.support \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.