From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Alexander Shukaev Newsgroups: gmane.emacs.devel Subject: Re: Temporarily disable `timer-event-handler' Date: Wed, 5 Feb 2020 02:21:37 +0100 Message-ID: <14f50308-b4d2-34e8-e7bb-89822dcd9404@Alexander.Shukaev.name> References: <83wo93hdzh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="3668"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 05 02:22:26 2020 Return-path: Envelope-to: ged-emacs-devel@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 1iz9Oc-0000rr-7k for ged-emacs-devel@m.gmane-mx.org; Wed, 05 Feb 2020 02:22:26 +0100 Original-Received: from localhost ([::1]:40258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iz9Ob-0001DH-8U for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Feb 2020 20:22:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50871) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iz9Nv-0000lz-HF for emacs-devel@gnu.org; Tue, 04 Feb 2020 20:21:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iz9Nu-0006Wp-HG for emacs-devel@gnu.org; Tue, 04 Feb 2020 20:21:43 -0500 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:33959) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iz9Nt-00062t-6Y; Tue, 04 Feb 2020 20:21:41 -0500 X-Originating-IP: 88.68.139.217 Original-Received: from [192.168.3.109] (dslb-088-068-139-217.088.068.pools.vodafone-ip.de [88.68.139.217]) (Authenticated sender: forum@alexander.shukaev.name) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id BCEFDE0006; Wed, 5 Feb 2020 01:21:37 +0000 (UTC) In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.70.183.196 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:244853 Archived-At: >> 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.