From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Bug in new sit-for? Date: Mon, 17 Jul 2006 00:48:05 +0200 Message-ID: <44BAC225.8050601@student.lu.se> References: <44BAA10C.7090701@student.lu.se> <87ejwljirb.fsf@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1153090110 5363 80.91.229.2 (16 Jul 2006 22:48:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 16 Jul 2006 22:48:30 +0000 (UTC) Cc: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 17 00:48:29 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 1G2FPW-0007Gm-BC for ged-emacs-devel@m.gmane.org; Mon, 17 Jul 2006 00:48:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G2FPV-00060t-Rc for ged-emacs-devel@m.gmane.org; Sun, 16 Jul 2006 18:48:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G2FPJ-00060Y-1z for emacs-devel@gnu.org; Sun, 16 Jul 2006 18:48:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G2FPH-00060K-IU for emacs-devel@gnu.org; Sun, 16 Jul 2006 18:48:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G2FPH-00060F-FJ for emacs-devel@gnu.org; Sun, 16 Jul 2006 18:48:11 -0400 Original-Received: from [81.228.11.98] (helo=pne-smtpout1-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G2FRo-0007cV-AX for emacs-devel@gnu.org; Sun, 16 Jul 2006 18:50:48 -0400 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout1-sn1.fre.skanova.net (7.2.075) id 44A1364D003EB6DE; Mon, 17 Jul 2006 00:48:06 +0200 User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) Original-To: Chong Yidong In-Reply-To: <87ejwljirb.fsf@stupidchicken.com> 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:57130 Archived-At: Chong Yidong wrote: >> emacs.exe -batch -Q -l sit-for-bug.el >> >> This hangs after the displaying "calling (sit-for 1)". The first >> (sit-for 0) does not hang. >> > > (First off, it isn't hung: press enter, and the sit-for will exit. > The problem is that `read-event' can't be interrupted by the timer in > batch mode). > Why can't it be interrupted in batch? > Anyway, the situation is a little more complicated than that, because > the old sit-for also doesn't work properly. > > With the old sit-for, there is no way to interrupt in batch mode: no > matter what key you press, including enter, the sit-for will sit for > the entire duration. > Yes, that was inconvenient too.