From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Questions about throw-on-input Date: Thu, 07 May 2020 09:49:19 -0400 Message-ID: References: <87r1vwxktw.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="68879"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Ivan Yonchovski Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 07 15:51:50 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 1jWgwI-000Hnu-27 for ged-emacs-devel@m.gmane-mx.org; Thu, 07 May 2020 15:51:50 +0200 Original-Received: from localhost ([::1]:42936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jWgwH-0007z5-2z for ged-emacs-devel@m.gmane-mx.org; Thu, 07 May 2020 09:51:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWgtx-0004Nu-Uj for emacs-devel@gnu.org; Thu, 07 May 2020 09:49:26 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:6001) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWgtv-0003xT-Et for emacs-devel@gnu.org; Thu, 07 May 2020 09:49:25 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 2DEC8100FAD; Thu, 7 May 2020 09:49:22 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 90FB7100F54; Thu, 7 May 2020 09:49:20 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1588859360; bh=mdnhCt2FV2efLG+2eVD2K7+105RKSwxIlnVosc0fP8w=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Phs07Ch1imub9eBhhwdo6m1QBb0DVk5EaDN69l/Hm5cmU4VFev8xhqjDyevMLQ+CN BIqWOXjdZHyz9kuUSjrT4sFOgnm8CYIJeEst3nclikXh6mw41UzM3TzvRJQLvwQD4n 7MsoSM1l9lzGRxgVWiDoLrN5Madw68CBbCGuOJFm2MN6yt46N4P3FvFkyRd10dIHtD SfyLNAyXrFMyg+067dPBqEf+eNEq8AbJqZYGX8vEeMK40vIOkHdgnV3cLRQvnZ86vP pAliM7JrGiQmQRMf9udjZMjZNP28gyH6/0TAHhZMk5m80pLRkxY/MX022QS9r8sBis 2cExQPpwWW1wg== Original-Received: from alfajor (unknown [216.154.3.202]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 4D84F120554; Thu, 7 May 2020 09:49:20 -0400 (EDT) In-Reply-To: <87r1vwxktw.fsf@gmail.com> (Ivan Yonchovski's message of "Thu, 07 May 2020 10:31:23 +0300") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/07 08:11:37 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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:249174 Archived-At: > (let ((throw-on-input t)) Why do you do that instead of using `while-no-input`? > .. after I execute the following block each of the 10 computations will be > canceled after pressing C-n for example, how do I force the handling of > the command to be processed? You mean the event is "eaten"? I must say I'm not sure why. > The issue is with the second block, it seems like throw-on-input is > disregarded when used in run-with-idle-timer. That's because timers are run with `inhibit-quit` which interferes. `while-no-input` would take care of that. Stefan