From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.bugs Subject: bug#37352: 27.0.50; recursive-edit aborts on elisp error after evaluation Date: Fri, 20 Sep 2019 21:09:03 +0200 Message-ID: <20190920190903.GA12634@protected.rcdrun.com> References: <86woeh6ho0.fsf@protected.rcdrun.com> <87muey95xs.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="254799"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: 37352@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 20 21:10:16 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iBOIK-001464-Kk for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Sep 2019 21:10:16 +0200 Original-Received: from localhost ([::1]:34848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBOIJ-00040t-ES for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Sep 2019 15:10:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57593) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBOI9-0003wJ-IP for bug-gnu-emacs@gnu.org; Fri, 20 Sep 2019 15:10:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iBOI8-0000Fx-A7 for bug-gnu-emacs@gnu.org; Fri, 20 Sep 2019 15:10:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49711) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iBOI8-0000Fo-5e for bug-gnu-emacs@gnu.org; Fri, 20 Sep 2019 15:10:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iBOI7-0007e4-UK for bug-gnu-emacs@gnu.org; Fri, 20 Sep 2019 15:10:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Sep 2019 19:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37352 X-GNU-PR-Package: emacs Original-Received: via spool by 37352-submit@debbugs.gnu.org id=B37352.156900655629289 (code B ref 37352); Fri, 20 Sep 2019 19:10:03 +0000 Original-Received: (at 37352) by debbugs.gnu.org; 20 Sep 2019 19:09:16 +0000 Original-Received: from localhost ([127.0.0.1]:58527 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iBOHK-0007cJ-EK for submit@debbugs.gnu.org; Fri, 20 Sep 2019 15:09:16 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:50389) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iBOHI-0007bw-55 for 37352@debbugs.gnu.org; Fri, 20 Sep 2019 15:09:12 -0400 Original-Received: from protected.rcdrun.com ([::ffff:31.223.149.160]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000006E360.000000005D8523D1.00006CBE; Fri, 20 Sep 2019 12:09:05 -0700 Original-Received: from localhost (localhost [127.0.0.1]) (uid 1001) by protected.rcdrun.com with local id 00000000000C18DC.000000005D8523D0.00005C2E; Fri, 20 Sep 2019 21:09:03 +0200 Content-Disposition: inline In-Reply-To: <87muey95xs.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:166792 Archived-At: * Lars Ingebrigtsen [2019-09-20 20:30]: > Jean Louis 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 Please see the attached picture. I have turned off debug on error before evaluating (jnjn) non-existing function. Jean