From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#9329: 24.0.50; `condition-case' with (debug...) is broken Date: Fri, 19 Aug 2011 06:18:16 -0700 Message-ID: References: <8F53D001FAD2440393B58A8589A53E44@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1313759947 16943 80.91.229.12 (19 Aug 2011 13:19:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 19 Aug 2011 13:19:07 +0000 (UTC) Cc: 9329@debbugs.gnu.org To: "'Lars Magne Ingebrigtsen'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 19 15:19:03 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QuOyU-0002Dl-Jc for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Aug 2011 15:19:02 +0200 Original-Received: from localhost ([::1]:43014 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuOyU-00083f-4k for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Aug 2011 09:19:02 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:48780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuOyR-00083C-QC for bug-gnu-emacs@gnu.org; Fri, 19 Aug 2011 09:19:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QuOyQ-0000b2-NL for bug-gnu-emacs@gnu.org; Fri, 19 Aug 2011 09:18:59 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54887) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuOyQ-0000au-Gv for bug-gnu-emacs@gnu.org; Fri, 19 Aug 2011 09:18:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QuP0Q-0000PS-A5; Fri, 19 Aug 2011 09:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Aug 2011 13:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9329 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9329-submit@debbugs.gnu.org id=B9329.13137600371542 (code B ref 9329); Fri, 19 Aug 2011 13:21:02 +0000 Original-Received: (at 9329) by debbugs.gnu.org; 19 Aug 2011 13:20:37 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QuP00-0000Oo-G5 for submit@debbugs.gnu.org; Fri, 19 Aug 2011 09:20:37 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QuOzy-0000Og-G3 for 9329@debbugs.gnu.org; Fri, 19 Aug 2011 09:20:35 -0400 Original-Received: from rtcsinet22.oracle.com (rtcsinet22.oracle.com [66.248.204.30]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p7JDIPqa004677 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 19 Aug 2011 13:18:27 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by rtcsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p7JDINp3013187 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 19 Aug 2011 13:18:24 GMT Original-Received: from abhmt109.oracle.com (abhmt109.oracle.com [141.146.116.61]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p7JDIISB014298; Fri, 19 Aug 2011 08:18:18 -0500 Original-Received: from dradamslap1 (/10.159.59.18) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 19 Aug 2011 06:18:18 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcxebE2zX0qEsFzcQA6sVeuUZENCbwABSvew X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Source-IP: rtcsinet22.oracle.com [66.248.204.30] X-CT-RefId: str=0001.0A090202.4E4E62A3.0122,ss=1,re=0.000,fgs=0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 19 Aug 2011 09:21:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) 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:50152 Archived-At: > > (let ((debug-on-error t) > > (eval-expression-debug-on-error t)) > > (condition-case nil (/ 1 0) > > ((debug error) "Test"))) > > > > The debugger is not opened. In Emacs 23.3 it is opened (as > > the doc says it should be). > > The car of a handler may be a list of condition names > instead of a single condition name. Then it handles all of them. Yes. So? (debug error) is a list of condition names. It is the car of a handler (the only handler). > So it seems to be doing what it's supposed to be doing. No. Check the doc. Check Emacs 23 - e.g., 23.3.1. > Is this what you wanted to say instead? > (condition-case error > (/ 1 0) > (error (debug error) "Test")) No. C-h i, Elisp, g handling errors "If an error is handled by some `condition-case' form, this ordinarily prevents the debugger from being run, even if `debug-on-error' says this error should invoke the debugger. If you want to be able to debug errors that are caught by a `condition-case', set the variable `debug-on-signal' to a non-`nil' value. You can also specify that a particular handler should let the debugger run first, by writing `debug' among the conditions, like this: (condition-case nil (delete-file filename) ((debug error) nil)) " Put the cursor after that sexp. `C-x C-e'. Do the same thing in Emacs 23.