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 and idle timers Date: Tue, 15 Aug 2006 16:12:02 -0400 Message-ID: <874pwdbvxp.fsf@stupidchicken.com> References: <20060811124841.840381.FMU5696@piglet.prv.splode.com> <87odun6qx0.fsf@stupidchicken.com> <87irkvxeu1.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 1155672695 16976 80.91.229.2 (15 Aug 2006 20:11:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 15 Aug 2006 20:11:35 +0000 (UTC) Cc: friedman@splode.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 15 22:11:33 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 1GD5G0-0005b5-Dr for ged-emacs-devel@m.gmane.org; Tue, 15 Aug 2006 22:11:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GD5Fz-0001yk-OU for ged-emacs-devel@m.gmane.org; Tue, 15 Aug 2006 16:11:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GD5FO-0001SJ-Po for emacs-devel@gnu.org; Tue, 15 Aug 2006 16:10:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GD5FM-0001OW-Vf for emacs-devel@gnu.org; Tue, 15 Aug 2006 16:10:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GD5FM-0001OF-Ap for emacs-devel@gnu.org; Tue, 15 Aug 2006 16:10:44 -0400 Original-Received: from [18.19.1.138] (helo=cyd) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GD5LS-0005Wg-BJ; Tue, 15 Aug 2006 16:17:02 -0400 Original-Received: by cyd (Postfix, from userid 1000) id 7477B4E2AB; Tue, 15 Aug 2006 16:12:02 -0400 (EDT) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Tue, 15 Aug 2006 08:41:32 -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:58411 Archived-At: Richard Stallman writes: > This is inconsistent with the old (built-in) behavior of sit-for, > which did not activate idle timers while waiting either. > > Ok, I am convinced. Could you implement it? Done. I also updated the lispref manual to clarify this issue. > Meanwhile, before the call at line 1494 of keyboard.c, something ought > to make Emacs idle. You mean something like this? /* Bind inhibit-quit to t so that C-g gets read in rather than quitting back to the minibuffer. */ int count = SPECPDL_INDEX (); specbind (Qinhibit_quit, Qt); timer_start_idle (); sit_for (Vminibuffer_message_timeout, 0, 2); timer_stop_idle (); /* Clear the echo area. */ message2 (0, 0, 0); I don't really see why it's important (it's currently just a two second pause in which idle timers don't run), and I don't know the code well enough to know if it will break anything horribly.