all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefankangas@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>, Jean Louis <bugs@gnu.support>
Cc: 75361-done@debbugs.gnu.org
Subject: bug#75361: 31.0.50; run-with-idle-timer not working unless there is some activity
Date: Mon, 6 Jan 2025 15:28:06 -0600	[thread overview]
Message-ID: <CADwFkmkQaWi5tzJ4VVYBmrT7c=fNqO_MCbJsN0ZqcyzurXrP6Q@mail.gmail.com> (raw)
In-Reply-To: <86o70mbeo1.fsf@gnu.org>

Eli Zaretskii <eliz@gnu.org> writes:

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

I'm therefore closing this bug report.





      reply	other threads:[~2025-01-06 21:28 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
2025-01-06 21:28   ` Stefan Kangas [this message]

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='CADwFkmkQaWi5tzJ4VVYBmrT7c=fNqO_MCbJsN0ZqcyzurXrP6Q@mail.gmail.com' \
    --to=stefankangas@gmail.com \
    --cc=75361-done@debbugs.gnu.org \
    --cc=bugs@gnu.support \
    --cc=eliz@gnu.org \
    /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.