From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#8789: 23.3; debug backtrace buffer changes window on step-through Date: Thu, 20 Sep 2012 18:15:30 -0400 Message-ID: References: <877gzmqwcf.fsf@web.de> <504B4940.9000809@gmx.at> <86wqzznwzv.fsf@web.de> <9BABA419184241F5A7246DC5D9A9EF81@us.oracle.com> <5057A4A3.4010100@gmx.at> <4617F483F2CC446D980DF7194E06BB3A@us.oracle.com> <50581E7F.3040108@gmx.at> <1C1E224E1D674670BEE043B4A35A271F@us.oracle.com> <5059FC9C.8020702@gmx.at> <2D8C133406A54B26AD253EC7EE52C666@us.oracle.com> <505B1F26.20209@gmx.at> <87ehlwzklr.fsf@web.de> <505B51AD.2080908@gmx.at> <91FFA03F2A7341A09E280DD2BCC4A428@us.oracle.com> <83392czgvc.fsf@gnu.org> <8123443E3625415F89A2118ECE393E72@us.oracle.com> <83zk4kxw9o.fsf@gnu.org> <9858A6718B624C2798943F59CEDFB74E@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1348179394 25180 80.91.229.3 (20 Sep 2012 22:16:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Sep 2012 22:16:34 +0000 (UTC) Cc: michael_heerdegen@web.de, 8789@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 21 00:16:38 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TEp2z-0004UN-JL for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Sep 2012 00:16:37 +0200 Original-Received: from localhost ([::1]:54738 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEp2v-00028v-12 for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Sep 2012 18:16:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45331) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEp2t-00028h-1d for bug-gnu-emacs@gnu.org; Thu, 20 Sep 2012 18:16:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TEp2r-0007Wx-Kr for bug-gnu-emacs@gnu.org; Thu, 20 Sep 2012 18:16:30 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEp2r-0007Wo-Hq for bug-gnu-emacs@gnu.org; Thu, 20 Sep 2012 18:16:29 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TEp4M-0005Xa-29 for bug-gnu-emacs@gnu.org; Thu, 20 Sep 2012 18:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Sep 2012 22:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8789 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8789-submit@debbugs.gnu.org id=B8789.134817943121236 (code B ref 8789); Thu, 20 Sep 2012 22:18:02 +0000 Original-Received: (at 8789) by debbugs.gnu.org; 20 Sep 2012 22:17:11 +0000 Original-Received: from localhost ([127.0.0.1]:45772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TEp3W-0005WS-Iw for submit@debbugs.gnu.org; Thu, 20 Sep 2012 18:17:11 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:39676) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TEp3U-0005WG-Cn for 8789@debbugs.gnu.org; Thu, 20 Sep 2012 18:17:09 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q8KMFVmd016527; Thu, 20 Sep 2012 18:15:31 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id D6238B4071; Thu, 20 Sep 2012 18:15:30 -0400 (EDT) In-Reply-To: <9858A6718B624C2798943F59CEDFB74E@us.oracle.com> (Drew Adams's message of "Thu, 20 Sep 2012 13:59:06 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64667 Archived-At: > But how about an option that does that only for eval when the debugger is > active? IOW, that sounds like something that is a broader brush than what is > needed here. There are 2 different situations: 1- calling the debugger while it's already active. This can easily be avoided by checking inhibit-debugger. `debug-on-error' already does that, and it would probably make sense to make debug-on-entry do it as well. 2- calling the debugger from a function that's called all the time. I think in the file-remote-p case, we'll hit this one, which means that every time you exit the debugger you'll get right back into it. Emacs is not rendered unusable, but if you're trying to debug an unrelated call to that function, you're out of luck. Number 2 can be solved by making the breakpoint conditional on some predicate which might check the backtrace to determine the context of the call. Stefan