unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alexander Shukaev <emacs@Alexander.Shukaev.name>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: Temporarily disable `timer-event-handler'
Date: Wed, 5 Feb 2020 02:21:37 +0100	[thread overview]
Message-ID: <14f50308-b4d2-34e8-e7bb-89822dcd9404@Alexander.Shukaev.name> (raw)
In-Reply-To: <jwvmu9x516i.fsf-monnier+emacs@gnu.org>

>> Some sort of macro (aka `ignore-timers') which essentially
>> forbids yielding during the execution of the enclosed body,
> 
> No, remember: Emacs is a Lisp machine, aka a kind of OS, so this would
> mean that application A hogs the whole machine just because it wants to
> prevent B from running.
> 
> Instead we need something more specific which lets A delay B without
> delaying other, unrelated, events.
> 

In a fine-grained scenario where one knows exactly which other timer 
(event) to delay, yes.  I was more into temporarily inhibiting all the 
timers (for whatever reason may be needed too, e.g. what Michael faces). 
  Would be cool to support both of course.



  reply	other threads:[~2020-02-05  1:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-02 23:25 Temporarily disable `timer-event-handler' Alexander Shukaev
2020-02-03  1:36 ` Drew Adams
2020-02-03  8:23 ` Michael Albinus
2020-02-03 14:01 ` Stefan Monnier
2020-02-03 15:44   ` Eli Zaretskii
2020-02-04 22:30     ` Alexander Shukaev
2020-02-05  0:53       ` Stefan Monnier
2020-02-05  1:21         ` Alexander Shukaev [this message]
2020-02-05  1:30           ` Stefan Monnier
2020-02-05 14:29           ` Eli Zaretskii
2020-02-05 15:09             ` Michael Albinus

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=14f50308-b4d2-34e8-e7bb-89822dcd9404@Alexander.Shukaev.name \
    --to=emacs@alexander.shukaev.name \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).