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#11218: with-demoted-errors use of condition-case-unless-debug; ert Date: Fri, 20 Apr 2012 22:34:34 -0400 Message-ID: References: <4F8DE112.5010106@gnu.org> <4F90D369.7070005@gnu.org> <4F91CEEF.20305@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334975743 15085 80.91.229.3 (21 Apr 2012 02:35:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 21 Apr 2012 02:35:43 +0000 (UTC) Cc: 11218@debbugs.gnu.org To: Christian Ohler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 21 04:35:42 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 1SLQAm-0001Wh-OL for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Apr 2012 04:35:40 +0200 Original-Received: from localhost ([::1]:44266 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLQAm-0005XJ-5k for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Apr 2012 22:35:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLQAi-0005X3-UG for bug-gnu-emacs@gnu.org; Fri, 20 Apr 2012 22:35:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SLQAh-0004u0-3s for bug-gnu-emacs@gnu.org; Fri, 20 Apr 2012 22:35:36 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLQAh-0004tw-0E for bug-gnu-emacs@gnu.org; Fri, 20 Apr 2012 22:35:35 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SLQB8-0005q0-8b for bug-gnu-emacs@gnu.org; Fri, 20 Apr 2012 22:36: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: Sat, 21 Apr 2012 02:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11218 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11218-submit@debbugs.gnu.org id=B11218.133497571322384 (code B ref 11218); Sat, 21 Apr 2012 02:36:02 +0000 Original-Received: (at 11218) by debbugs.gnu.org; 21 Apr 2012 02:35:13 +0000 Original-Received: from localhost ([127.0.0.1]:44877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SLQAK-0005oy-RC for submit@debbugs.gnu.org; Fri, 20 Apr 2012 22:35:13 -0400 Original-Received: from ironport-out.teksavvy.com ([206.248.143.162]:41404) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SLQAI-0005ok-T8 for 11218@debbugs.gnu.org; Fri, 20 Apr 2012 22:35:11 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApYIACxOgk/O+K5t/2dsb2JhbABDuCMDgQyBCIIJAQEEAVYjBQsLNBIUGA0kLoduBbYyi2GEeQSkRYFdgwM X-IronPort-AV: E=Sophos;i="4.75,391,1330923600"; d="scan'208";a="175683849" Original-Received: from 206-248-174-109.dsl.teksavvy.com (HELO pastel.home) ([206.248.174.109]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 20 Apr 2012 22:34:36 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id D2DE558E55; Fri, 20 Apr 2012 22:34:34 -0400 (EDT) In-Reply-To: <4F91CEEF.20305@gnu.org> (Christian Ohler's message of "Fri, 20 Apr 2012 14:02:39 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (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:59340 Archived-At: >> I don't see the point of showing that info when running the tests. >> If the user wants that info, he should be able to easily say "run this >> test with debug-on-error" so he doesn't only get a backtrace but also >> gets put in the debugger where he can inspect the state. > ERT's keyboard shortcut for that is "d". But it's not a good solution if: > * the test is nondeterministic (maybe due to subprocess interaction), > * the test takes a long time to run, > * you have multiple failing tests and want to quickly compare if they are > crashing in the same place, > * ERT is running in batch mode (e.g. make check). > It's better to collect as much data as reasonably possible when the error > first occurs. None of these arguments are really specific to ERT. It just seems like you like to run with debug-on-error, which is fine (I do too). But don't impose it on all ERT users. >> No: you'll be put in the debugger for the error "a" but if you hit `c' >> it will continue and re-enter the debugger for error "b". > My Emacs is a few months old, but that doesn't work for me. Has it > changed recently? [...] > If `debug-on-error' is t, `with-demoted-errors' becomes essentially > equivalent to `progn', and (error "b") can ever be reached in You're right, sorry: brain malfunction. But that just means you first have to fix the bug that signals "a" before getting to the bug that signals "b". Stefan