From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: while-no-input Date: Mon, 29 Nov 2004 09:20:17 -0500 Message-ID: References: <1B3ACCFD5694A94DBA4E231402B0E9ED9DD6C2@mucmail1.sdm.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1101738191 14941 80.91.229.6 (29 Nov 2004 14:23:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 Nov 2004 14:23:11 +0000 (UTC) Cc: klaus.berndl@sdm.de, emacs-devel@gnu.org, "Kim F. Storm" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 29 15:23:01 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CYmOq-0005ku-00 for ; Mon, 29 Nov 2004 15:21:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CYmYE-0007L1-MR for ged-emacs-devel@m.gmane.org; Mon, 29 Nov 2004 09:30:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CYmY1-0007Is-7C for emacs-devel@gnu.org; Mon, 29 Nov 2004 09:30:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CYmY0-0007IE-05 for emacs-devel@gnu.org; Mon, 29 Nov 2004 09:30:36 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CYmXz-0007I0-S2 for emacs-devel@gnu.org; Mon, 29 Nov 2004 09:30:35 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CYmOC-0000tA-Bp; Mon, 29 Nov 2004 09:20:28 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 19E218282CD; Mon, 29 Nov 2004 09:20:28 -0500 (EST) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 973764AC5B2; Mon, 29 Nov 2004 09:20:20 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id EE5C18CA69; Mon, 29 Nov 2004 09:20:17 -0500 (EST) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Mon, 29 Nov 2004 01:11:08 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=0, requis 5) X-MailScanner-From: monnier@iro.umontreal.ca X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:30486 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30486 > The only thing programs do to control quitting is to bind inhibit-quit > on and off. That is not relevant to handling with-no-input, so I think Could you substantiate that claim? AFAIK inhibit-quit is used to get more-or-less-atomic behavior in places where it matters. while-no-input should very clearly obey inhibit-quit since it also causes non-local exits at places where it can't be predited (just like quit). Don't forget that the code within while-no-input is usually code that was not specifically designed for while-no-input (otherwise it would already use input-pending-p instead). Here is another way to say the ame thing: of all the non-local exits we have right now, `quit' is the only one that's asynchronous. `while-no-input' introduces another form of asynchronous signalling and is thus much more like `quit' than like `throw'. Stefan