unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: 9329@debbugs.gnu.org
Subject: bug#9329: 24.0.50; `condition-case' with (debug...) is broken
Date: Fri, 19 Aug 2011 14:32:47 +0200	[thread overview]
Message-ID: <m3hb5dmvio.fsf@stories.gnus.org> (raw)
In-Reply-To: <8F53D001FAD2440393B58A8589A53E44@us.oracle.com> (Drew Adams's message of "Thu, 18 Aug 2011 20:47:57 -0700")

"Drew Adams" <drew.adams@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/





  reply	other threads:[~2011-08-19 12:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-19  3:47 bug#9329: 24.0.50; `condition-case' with (debug...) is broken Drew Adams
2011-08-19 12:32 ` Lars Magne Ingebrigtsen [this message]
2011-08-19 13:18   ` Drew Adams
2011-08-20 21:17 ` Chong Yidong
2011-08-21  3:50   ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3hb5dmvio.fsf@stories.gnus.org \
    --to=larsi@gnus.org \
    --cc=9329@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).