GNU bug report logs - #9329
24.0.50; `condition-case' with (debug...) is broken

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Fri, 19 Aug 2011 03:51:02 UTC

Severity: normal

Found in version 24.0.50

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 9329 <at> debbugs.gnu.org
Subject: bug#9329: 24.0.50; `condition-case' with (debug...) is broken
Date: Fri, 19 Aug 2011 14:32:47 +0200
"Drew Adams" <drew.adams <at> oracle.com> writes:

> (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.
---

So it seems to be doing what it's supposed to be doing.

Is this what you wanted to say instead?

(condition-case error
    (/ 1 0)
  (error
   (debug error)
   "Test"))

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




This bug report was last modified 13 years and 339 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.