all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ergus <spacibba@aol.com>
To: emacs-devel@gnu.org
Subject: Fwd: idle exit hook
Date: Wed, 22 Jul 2020 13:32:42 +0200	[thread overview]
Message-ID: <20200722113242.577d4nfx4wbbbxxs@ergus> (raw)
In-Reply-To: 20200722113242.577d4nfx4wbbbxxs.ref@ergus

Hi:

I recently saw a question in reddit but the answer there was not
clear (or maybe it requires a feature request)

Is there an idle-time-exit-hook? or, what's the canonical method to call
a function after breaking an idle? something like on-idle-exit?

So far I understand that having such a hook could produce some
performance penalty but not more than post-command-hook for example. Any
way, adding some restrictions (running it only once || reset the
hooks list on every idle start/end or just documenting it properly)
could solve the problem.. does it makes sense?

The idea came to me when trying to implement my own version of
idle-highlight-mode to propose to add it to vanilla. I would like to
provide a different behaviour.

Best,
Ergus



       reply	other threads:[~2020-07-22 11:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20200722113242.577d4nfx4wbbbxxs.ref@ergus>
2020-07-22 11:32 ` Ergus [this message]
2020-07-22 13:59   ` Fwd: idle exit hook Eli Zaretskii
2020-07-22 22:00     ` Ergus
2020-07-22 22:31       ` Stefan Monnier

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=20200722113242.577d4nfx4wbbbxxs@ergus \
    --to=spacibba@aol.com \
    --cc=emacs-devel@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.