From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: sit-for Date: Wed, 02 Aug 2006 08:06:09 +0200 Message-ID: <85psfjy8mm.fsf@lola.goethe.zz> References: <854px1e8xx.fsf@lola.goethe.zz> <877j1spg1d.fsf@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1154499003 4504 80.91.229.2 (2 Aug 2006 06:10:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 2 Aug 2006 06:10:03 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 02 08:10:00 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 1G89vX-0006Ce-S1 for ged-emacs-devel@m.gmane.org; Wed, 02 Aug 2006 08:09:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G89vX-0003gg-8t for ged-emacs-devel@m.gmane.org; Wed, 02 Aug 2006 02:09:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G89vK-0003gX-7T for emacs-devel@gnu.org; Wed, 02 Aug 2006 02:09:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G89vI-0003fF-VB for emacs-devel@gnu.org; Wed, 02 Aug 2006 02:09:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G89vI-0003fC-RI for emacs-devel@gnu.org; Wed, 02 Aug 2006 02:09:40 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G89yM-000153-4D for emacs-devel@gnu.org; Wed, 02 Aug 2006 02:12:50 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1G89vH-00042V-AW; Wed, 02 Aug 2006 02:09:39 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 165571CE3085; Wed, 2 Aug 2006 08:06:09 +0200 (CEST) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: (Kim F. Storm's message of "Wed, 02 Aug 2006 01:24:09 +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:57984 Archived-At: storm@cua.dk (Kim F. Storm) writes: > Chong Yidong writes: > >>> 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. > > IMO, sit-for should never be interrupted by input coming from a > subprocess (that is what accept-process-output is for), and code > which relies on that behaviour is wrong. accept-process-output does not redraw the screen, so it can't do that. > Process output is _not_ input in the normal sense. AFAICS, process > output is still read during sit-for and passed to the proper filters > or buffers--so the new sit-for is doing TRT. _If_ it indeed processes the input. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum