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: Sat, 29 Jul 2006 09:15:34 +0200 Message-ID: <85wt9wq3u1.fsf@lola.goethe.zz> References: <854px1e8xx.fsf@lola.goethe.zz> <87d5bppfid.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 1154157391 10655 80.91.229.2 (29 Jul 2006 07:16:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 Jul 2006 07:16:31 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 29 09:16:28 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 1G6j3e-00071o-42 for ged-emacs-devel@m.gmane.org; Sat, 29 Jul 2006 09:16:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G6j3d-0003Ko-Gv for ged-emacs-devel@m.gmane.org; Sat, 29 Jul 2006 03:16:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G6j3P-0003Kj-MS for emacs-devel@gnu.org; Sat, 29 Jul 2006 03:16:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G6j3P-0003KX-C6 for emacs-devel@gnu.org; Sat, 29 Jul 2006 03:16:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G6j3P-0003KU-1u for emacs-devel@gnu.org; Sat, 29 Jul 2006 03:16:07 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G6j5Z-0001ZU-61 for emacs-devel@gnu.org; Sat, 29 Jul 2006 03:18:21 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1G6j3N-00013w-Vp; Sat, 29 Jul 2006 03:16:06 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 192CA1D25D66; Sat, 29 Jul 2006 09:15:35 +0200 (CEST) Original-To: Chong Yidong In-Reply-To: <87d5bppfid.fsf@stupidchicken.com> (Chong Yidong's message of "Fri, 28 Jul 2006 17:48:42 -0400") 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:57771 Archived-At: Chong Yidong writes: > David Kastrup 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. > > I haven't seen this problem in my usage of gnus. It is not just gnus. And it is not easy to see: Emacs gets somewhat sluggish, sometimes the cursor blinks quite less than expected, and CPU usage goes up, up, up, which is of course mostly noticeable when you have power management, and the fans start waking up. > It would be helpful if you could be more specific: does the problem > happen with the 2006-07-26 change to `read-event'? Already before. I have now recompiled Emacs and will see whether this changes something. > If so, did it start to happen at that time, or did it already happen > after the Lisp-level `sit-for' was implemented? > > If it only started after the `read-event' change, one possibility is > that read_char is getting stuck somewhere before we get to the point > where we check if the timeout has elapsed. > >> This is really a nuisance. The change to sit-for is a fundamental >> change to some core mechanism of Emacs, and it is currently >> seemingly breaking quite a few things, apart from causing strange >> effects. > > That's the story of the Emacs 22 feature freeze. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum