From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: sit-for Date: Mon, 31 Jul 2006 00:36:43 +0200 Message-ID: References: <854px1e8xx.fsf@lola.goethe.zz> <87d5bppfid.fsf@stupidchicken.com> <85wt9wq3u1.fsf@lola.goethe.zz> <85k65wpzwr.fsf@lola.goethe.zz> <87vepgii8m.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 1154299121 27571 80.91.229.2 (30 Jul 2006 22:38:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Jul 2006 22:38:41 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 31 00:38:39 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 1G7Jvh-0002oE-DB for ged-emacs-devel@m.gmane.org; Mon, 31 Jul 2006 00:38:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7Jvg-0000yz-EU for ged-emacs-devel@m.gmane.org; Sun, 30 Jul 2006 18:38:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G7JvW-0000yu-Dr for emacs-devel@gnu.org; Sun, 30 Jul 2006 18:38:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G7JvU-0000xe-T1 for emacs-devel@gnu.org; Sun, 30 Jul 2006 18:38:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7JvU-0000xU-Ow for emacs-devel@gnu.org; Sun, 30 Jul 2006 18:38:24 -0400 Original-Received: from [195.41.46.236] (helo=pfepb.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G7Jxz-0004gk-Oe; Sun, 30 Jul 2006 18:40:59 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepb.post.tele.dk (Postfix) with SMTP id 8407BA50060; Mon, 31 Jul 2006 00:38:14 +0200 (CEST) Original-To: Chong Yidong In-Reply-To: <87vepgii8m.fsf@stupidchicken.com> (Chong Yidong's message of "Sat, 29 Jul 2006 10:43:53 -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:57823 Archived-At: Chong Yidong writes: > The other possibility is some kind of bad timer interaction, in which > a timer is called during sit-for, but that timer itself contains a > sit-for, so each sit-for never returns. But that kind of bug would > probably have affected the old sit-for implementation too, so this > seems unlikely. I don't know if it is related, but from time to time, the cursor disappears completely (with blinking cursor). I have not been able to reproduce this in any reliable way. This is an old bug, discussed on the list 1-2 years ago. It still happens with the new sit-for ... Since wait_read_process_output now has an end_time rather than a duration, it seems possible to make a check on reentry to wait_read_process_output whether an "outer" call has an end_time BEFORE the end_time of the current call ... and do something sensible, e.g. modify the current end_time to the same as the outer end_time. In that way, nested sit-for calls would never make emacs wait longer than "allowed" by an outer sit-for call. -- Kim F. Storm http://www.cua.dk