From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: two related edebug problems Date: Fri, 11 Aug 2006 18:34:29 -0400 Message-ID: References: <2cd46e7f0608071130o7d72123ct82841031bf757f5d@mail.gmail.com> <2cd46e7f0608081226o63f2a0d5q9e79575021d0a181@mail.gmail.com> <873bc4k1yl.fsf@furball.mit.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1155335703 24394 80.91.229.2 (11 Aug 2006 22:35:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 11 Aug 2006 22:35:03 +0000 (UTC) Cc: Ken Manheimer , rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 12 00:35:00 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 1GBfai-0006Ov-GC for ged-emacs-devel@m.gmane.org; Sat, 12 Aug 2006 00:34:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GBfah-0001Ez-Q1 for ged-emacs-devel@m.gmane.org; Fri, 11 Aug 2006 18:34:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GBfaT-0001CK-5t for emacs-devel@gnu.org; Fri, 11 Aug 2006 18:34:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GBfaP-00019d-OR for emacs-devel@gnu.org; Fri, 11 Aug 2006 18:34:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GBfaP-00019M-Ki for emacs-devel@gnu.org; Fri, 11 Aug 2006 18:34:37 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GBffb-0001cO-Vb; Fri, 11 Aug 2006 18:40:00 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 11E0D2CE9BE; Fri, 11 Aug 2006 18:34:35 -0400 (EDT) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 5EA03445C; Fri, 11 Aug 2006 18:34:29 -0400 (EDT) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 4A0616C8CC; Fri, 11 Aug 2006 18:34:29 -0400 (EDT) Original-To: Chong Yidong In-Reply-To: <873bc4k1yl.fsf@furball.mit.edu> (Chong Yidong's message of "Thu, 10 Aug 2006 12:08:50 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca 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:58302 Archived-At: > I found out the cause of the bug. edebug-display calls sit-for to > pause before displaying eval results, then calls > edebug-recursive-edit. However, edebug-recursive-edit rebinds > unread-command-events, causing sit-for interruptions (which are put > into unread-command-events) to go unnoticed. This creates problems > when you type in edebug commands in quick succession. I fixed this by > moving the rebinding of unread-command-events to edebug-display. This is a workaround rather than a fix. A real fix would be to change sit-for so it doesn't use unread-command-events but an internal variable instead with which other code can't mess. Stefan