unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Jean Louis <bugs@gnu.support>
Cc: 37352@debbugs.gnu.org
Subject: bug#37352: 27.0.50; recursive-edit aborts on elisp error after evaluation
Date: Fri, 20 Sep 2019 20:30:07 +0200	[thread overview]
Message-ID: <87muey95xs.fsf@gnus.org> (raw)
In-Reply-To: <86woeh6ho0.fsf@protected.rcdrun.com> (Jean Louis's message of "Mon, 09 Sep 2019 09:41:03 +0200")

Jean Louis <bugs@gnu.support> writes:


[...]

>       (unwind-protect
> 	  (recursive-edit)
> 	(if (get-buffer-window buffy)
> 	    (progn
> 	      (setq new-value (buffer-substring (point-min) (point-max)))
> 	      (kill-buffer buffy))))
>       (switch-to-buffer this-buffer)
>       new-value)))
>
> Then you could edit some string to see how this is happening:
>
> (read-from-buffer "EDIT ME\nEvaluate this: (nonexistingfunction) ")
>
> Then there after you could evaluate some non existing function to invoke
> the Emacs Lisp error.
>
> At that time the editing with recursive-buffer is interrupted and data
> is lost.

I'm not quite sure I understand the function above, are you basically
doing this?

M-: (recursive-edit)
M-: (error)

And you say that this returns you to the to the top level?

It doesn't do that for me -- unless I have debug-on-error set, and use
`q' to exit that (which returns to top level, as advertised).

Is this what you're seeing?

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





  reply	other threads:[~2019-09-20 18:30 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 [this message]
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
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=87muey95xs.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=37352@debbugs.gnu.org \
    --cc=bugs@gnu.support \
    /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).