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: two related edebug problems Date: Wed, 09 Aug 2006 21:13:46 -0400 Message-ID: References: <2cd46e7f0608071130o7d72123ct82841031bf757f5d@mail.gmail.com> <2cd46e7f0608081226o63f2a0d5q9e79575021d0a181@mail.gmail.com> <87hd0mhswu.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 1155172559 23049 80.91.229.2 (10 Aug 2006 01:15:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 10 Aug 2006 01:15:59 +0000 (UTC) Cc: ken.manheimer@gmail.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 10 03:15:57 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 1GAz9R-0004fJ-6G for ged-emacs-devel@m.gmane.org; Thu, 10 Aug 2006 03:15:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GAz9Q-0007C9-Ku for ged-emacs-devel@m.gmane.org; Wed, 09 Aug 2006 21:15:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GAz7N-0005Yn-QR for emacs-devel@gnu.org; Wed, 09 Aug 2006 21:13:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GAz7N-0005YD-EM for emacs-devel@gnu.org; Wed, 09 Aug 2006 21:13:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GAz7N-0005Xz-45 for emacs-devel@gnu.org; Wed, 09 Aug 2006 21:13:49 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GAzCA-00036n-QK for emacs-devel@gnu.org; Wed, 09 Aug 2006 21:18:46 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1GAz7K-0002pJ-Pa; Wed, 09 Aug 2006 21:13:46 -0400 Original-To: Chong Yidong In-reply-to: <87hd0mhswu.fsf@stupidchicken.com> (message from Chong Yidong on Wed, 09 Aug 2006 10:42:41 -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:58244 Archived-At: One possibility is to make use of the sit-for statements further down in edebug-display. Since sit-for now returns iff there is real input, we could capture the return value and use that to determine whether to stop execution. How about making input-pending-p reliable by making it use the new read-event timeout argument. If it gets an event, it can unread the event.