unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Noam Postavsky <npostavs@gmail.com>
Cc: Lars Ingebrigtsen <larsi@gnus.org>, Jean Louis <bugs@gnu.support>,
	37352@debbugs.gnu.org
Subject: bug#37352: 27.0.50; recursive-edit aborts on elisp error after evaluation
Date: Sun, 22 Sep 2019 09:55:44 -0700 (PDT)	[thread overview]
Message-ID: <7ddd69dc-0dbf-4371-8067-ef219cc0569d@default> (raw)
In-Reply-To: <871rw89tfg.fsf@gmail.com>

> > > I don't know why the `q' command in the debugging mode
> > > is defined that way.
> >
> > Uh, because it makes sense?  The recursive edit
> > was entered only for use of the debugger.
> 
> There are two recursive edits, one that the OP entered from their code
> (I assume for the edit-file-and-return-as-string stuff [1]), 

Sorry; didn't realize that.

> and a second nested one that happend after an error was signaled and the
> debugger was invoked. Then quitting the debugger exits both recursive
> edits, because q is bound to top-level in debugger-mode, and top-level
> aborts all recursive edits, not just the latest one.
> 
> A possible solution might be to bind q to a command which quits
> recursive edits only up to the one that the debugger invoked.

I see; thanks.

But if an error was raised then is it possible to return
from the debugger recursive edit to the previous recursive
edit?  Continuing from an error can be problematic, no?

On the other hand, if the debugger was entered for, say,
`debug` or `debug-on-entry` then what's called for is to
use `c`, not `q`, (as many times as necessary, to exit the
debugger), or to use `C-M-c` to exit the recursive edit
immediately.





  reply	other threads:[~2019-09-22 16:55 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-09  7:41 bug#37352: 27.0.50; recursive-edit aborts on elisp error after evaluation Jean Louis
2019-09-20 18:30 ` Lars Ingebrigtsen
2019-09-20 19:09   ` Jean Louis
2019-09-20 21:01     ` Lars Ingebrigtsen
2019-09-22 12:57       ` Jean Louis
2019-09-22 13:00         ` Lars Ingebrigtsen
2019-09-22 13:04           ` Jean Louis
2019-09-22 13:49             ` Lars Ingebrigtsen
2019-09-22 16:14               ` Drew Adams
2019-09-22 16:39                 ` Noam Postavsky
2019-09-22 16:55                   ` Drew Adams [this message]
2019-09-22 16:59                   ` Eli Zaretskii
2019-09-22 17:54                     ` Andreas Schwab
2019-09-22 18:20                       ` Eli Zaretskii
2019-09-23 10:18                         ` Lars Ingebrigtsen
2019-09-23 12:43                           ` Noam Postavsky
2019-09-23 14:01                             ` Lars Ingebrigtsen
2019-09-23 14:14                             ` Andreas Schwab
2019-09-25  8:11                           ` Eli Zaretskii
2019-09-25 13:09                             ` Lars Ingebrigtsen
2019-09-22 16:58                 ` Eli Zaretskii

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=7ddd69dc-0dbf-4371-8067-ef219cc0569d@default \
    --to=drew.adams@oracle.com \
    --cc=37352@debbugs.gnu.org \
    --cc=bugs@gnu.support \
    --cc=larsi@gnus.org \
    --cc=npostavs@gmail.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).