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: [simon.marshall@misys.com: Lingering input pending with motif menu bar] Date: Tue, 04 Jul 2006 16:53:17 -0400 Message-ID: References: <87d5cmnpe7.fsf@stupidchicken.com> <87mzbp8ovq.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 1152046496 2318 80.91.229.2 (4 Jul 2006 20:54:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Jul 2006 20:54:56 +0000 (UTC) Cc: emacs-devel@gnu.org, storm@cua.dk Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 04 22:54:54 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 1Fxrv1-0002r5-FY for ged-emacs-devel@m.gmane.org; Tue, 04 Jul 2006 22:54:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fxrv1-0001SS-3G for ged-emacs-devel@m.gmane.org; Tue, 04 Jul 2006 16:54:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FxrtY-0000hO-Er for emacs-devel@gnu.org; Tue, 04 Jul 2006 16:53:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FxrtX-0000gw-Sb for emacs-devel@gnu.org; Tue, 04 Jul 2006 16:53:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FxrtX-0000gr-KO for emacs-devel@gnu.org; Tue, 04 Jul 2006 16:53:19 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fxs7I-0002ZT-56 for emacs-devel@gnu.org; Tue, 04 Jul 2006 17:07:32 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1FxrtV-00011o-Up; Tue, 04 Jul 2006 16:53:18 -0400 Original-To: Chong Yidong In-reply-to: <87mzbp8ovq.fsf@stupidchicken.com> (message from Chong Yidong on Tue, 04 Jul 2006 09:45:45 -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:56527 Archived-At: I've found a Lisp-level workaround --- by using `read-event' and `with-timeout', it's possible to catch just the events we are interested in (i.e., mouse clicks and keystrokes). It took quite a long time to find something that works, though. If this is an acceptable solution, the Elisp manual node on "Waiting" could be updated to mention this hack. If this is the right way to wait N seconds, we should make sit-for do this, so that user programs don't have to use a complex work-around. If this indeed works right, then I think putting this into sit-for is a clear bug-fix. Would you like to do it?