unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Error does not throw to debugger in 'when' block
Date: Thu, 12 Jan 2023 12:26:27 +0100	[thread overview]
Message-ID: <87mt6oyows.fsf@web.de> (raw)
In-Reply-To: AM9PR09MB497789B92E212B474FA162E896FD9@AM9PR09MB4977.eurprd09.prod.outlook.com

Arthur Miller <arthur.miller@live.com> writes:

> Just pasted the above defun in scratch buffer, in emacs with -Q option, then
> C-x C-e, and run with M-x. Nothing special.
>
> I have observed later, that it correctly exits from the execution of
> defun, if I
> add more code after the 'when' form. It just does not end up in the
> debug buffer.

It's still unclear from your words what you do and what you expect.

For M-x new-patch to enter the debugger you need to enable
`debug-on-error'.  I see the expected behavior: I get a debugger when
the option is enabled.

For C-x C-e you need to eval a form that raises an error.  Also that
works as expected: evaluating the defun doesn't raise an error as
expected.

Michael.




  reply	other threads:[~2023-01-12 11:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-12  6:51 Error does not throw to debugger in 'when' block Arthur Miller
2023-01-12  8:28 ` Eli Zaretskii
2023-01-12  9:08   ` Arthur Miller
2023-01-12 11:26     ` Michael Heerdegen [this message]
2023-01-12 19:18       ` Arthur Miller
2023-01-12 21:15         ` Michael Heerdegen
2023-01-12 22:49           ` Arthur Miller

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=87mt6oyows.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=help-gnu-emacs@gnu.org \
    /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.
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).