From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: sit-for and idle timers Date: Wed, 16 Aug 2006 15:27:23 -0400 Message-ID: References: <20060811124841.840381.FMU5696@piglet.prv.splode.com> <87odun6qx0.fsf@stupidchicken.com> <87irkvxeu1.fsf@stupidchicken.com> <874pwdbvxp.fsf@stupidchicken.com> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1155756523 8856 80.91.229.2 (16 Aug 2006 19:28:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 16 Aug 2006 19:28:43 +0000 (UTC) Cc: friedman@splode.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 16 21:28:41 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 1GDR44-000431-C1 for ged-emacs-devel@m.gmane.org; Wed, 16 Aug 2006 21:28:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GDR43-0005t9-03 for ged-emacs-devel@m.gmane.org; Wed, 16 Aug 2006 15:28:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GDR2z-0005Va-AH for emacs-devel@gnu.org; Wed, 16 Aug 2006 15:27:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GDR2y-0005Uq-Lk for emacs-devel@gnu.org; Wed, 16 Aug 2006 15:27:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GDR2y-0005Ug-H8 for emacs-devel@gnu.org; Wed, 16 Aug 2006 15:27:24 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GDR9I-0006A2-KX for emacs-devel@gnu.org; Wed, 16 Aug 2006 15:33:56 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1GDR2x-00087C-3N; Wed, 16 Aug 2006 15:27:23 -0400 Original-To: Chong Yidong In-reply-to: <874pwdbvxp.fsf@stupidchicken.com> (message from Chong Yidong on Tue, 15 Aug 2006 16:12:02 -0400) 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:58450 Archived-At: 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 (); Yes, except does it need timer_stop_idle? It is going to read input straightaway after. 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. It isn't tremendously important, but it seems correct for Emacs' idleness to begin when the command finishes. If you see a risk, I don't insist on doing this now. How about if you install it in the unicode-2 branch? to be idle as soon as