From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: sit-for Date: Tue, 01 Aug 2006 12:38:38 -0400 Message-ID: <877j1spg1d.fsf@stupidchicken.com> References: <854px1e8xx.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1154450329 583 80.91.229.2 (1 Aug 2006 16:38:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 1 Aug 2006 16:38:49 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 01 18:38:45 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G7xGF-00017N-AB for ged-emacs-devel@m.gmane.org; Tue, 01 Aug 2006 18:38:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7xGE-0008VW-Gi for ged-emacs-devel@m.gmane.org; Tue, 01 Aug 2006 12:38:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G7xFW-00089T-LV for emacs-devel@gnu.org; Tue, 01 Aug 2006 12:37:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G7xFT-00086G-F1 for emacs-devel@gnu.org; Tue, 01 Aug 2006 12:37:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7xFT-00085s-5y for emacs-devel@gnu.org; Tue, 01 Aug 2006 12:37:39 -0400 Original-Received: from [18.19.1.138] (helo=cyd) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G7xIO-0008Gw-99 for emacs-devel@gnu.org; Tue, 01 Aug 2006 12:40:40 -0400 Original-Received: by cyd (Postfix, from userid 1000) id A7B924E2DC; Tue, 1 Aug 2006 12:38:38 -0400 (EDT) Original-To: emacs-devel@gnu.org In-Reply-To: <854px1e8xx.fsf@lola.goethe.zz> (David Kastrup's message of "Fri, 28 Jul 2006 23:06:02 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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: news.gmane.org gmane.emacs.devel:57946 Archived-At: > Since we have the new sit-for implementation, I have a lot of times > when Emacs just pauses in busy waiting for input. This happens > spontaneously. One situation where it happens frequently is when > reading news with gnus. Another possibility just occurred to me. Unlike the old sit-for, the new sit-for is not interrupted by input coming from processes (as opposed to user input). If gnus (or some other package) relies on this behavior, a bug will arise. The question is: is this a bug of the new sit-for? If sit-for is changed to interrupt due to processes, we have the same problem as before: input coming from miscellaneous async processes will interfere with towers of hanoi (or other animation code). One possibility is to bring back the old sit-for with its warts (interruptable even if no new input events are available) and change the animation code to use `read-event' with its new timeout argument. Another possibility is to leave sit-for as it is, try to find code that relies on sit-for returning due to process output, and fix it.