From unknown Fri Aug 15 20:28:25 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#2966 <2966@debbugs.gnu.org> To: bug#2966 <2966@debbugs.gnu.org> Subject: Status: 23.0.92; A typing error in debugger-eval-expression stops the debugger Reply-To: bug#2966 <2966@debbugs.gnu.org> Date: Sat, 16 Aug 2025 03:28:25 +0000 retitle 2966 23.0.92; A typing error in debugger-eval-expression stops the = debugger reassign 2966 emacs submitter 2966 dcl441-bugs@yahoo.com severity 2966 normal tag 2966 fixed thanks From dcl441-bugs@yahoo.com Sat Apr 11 19:01:56 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 12 Apr 2009 02:01:57 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3C21r8S031363 for ; Sat, 11 Apr 2009 19:01:55 -0700 Received: from mail.gnu.org ([199.232.76.166]:43888 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Lsp17-0000he-Lo for emacs-pretest-bug@gnu.org; Sat, 11 Apr 2009 22:01:53 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Lsp15-0005G8-TL for emacs-pretest-bug@gnu.org; Sat, 11 Apr 2009 22:01:52 -0400 Received: from web53204.mail.re2.yahoo.com ([206.190.49.74]:25879) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Lsp15-0005Em-Bi for emacs-pretest-bug@gnu.org; Sat, 11 Apr 2009 22:01:51 -0400 Received: (qmail 64244 invoked by uid 60001); 12 Apr 2009 02:01:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1239501707; bh=0/RicKLVnsP7PRyoyRxiaigncMvQL7Tzgb/b73YMx84=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=nYZiBzRdJcKO3f3BsuMngTcrhz2hnZCykZ0cy00beEUI1K17lXD4PDhFXmZomKALVegWhiynfg3miKSOuVxz7eDl6r0oRFhy260s8lvQ+ils33GM+mYaQEhHY4dQkrEE37DKrTNqqh6ti2hsAY/IVNct81WvTV0tkAHRh+mYiCQ= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=tG/ueAAYt+seYFUxTNHnr87aWZ51zvazTWjt8AgNM9JXd20eW6RWGNscKaVTy8DuZLLOSfFvCNi2wpJ0H27XQRFS7HEKaGy4lLqaDyCn/LvZ7jhYXehKPgu0iAs5wAe/j8fDJqKZEJGLvHSv7gILZIONheJrn5P15YP9GrLiYXY=; Message-ID: <663334.62553.qm@web53204.mail.re2.yahoo.com> X-YMail-OSG: Clxl52kVM1m0O3nOvn1i4qf0F22_HTELTacBr255f966Fp_kacdHxy1K8ymeWpmSXgOrLsVX9RuWqEQzFpTiG.rLkv3aU7hUJKGGEsIV5Cvr5Fg5FT4xJ9Pd0V1KTZsnGw6VUGJEXhX8Mb0gO72UOswEsm7BSXU99zWuwWx.97dl2GQq.xc2i_EC5iY0HVRjvQR6XOQYJoCUWfwhmWcgvsNoco1vdDGT2PJRwitIQowd1.yYVNIhgoXroOsrc1ktWwwYYcVe3bLT_DG.1Ow0 Received: from [89.6.42.98] by web53204.mail.re2.yahoo.com via HTTP; Sat, 11 Apr 2009 19:01:47 PDT X-Mailer: YahooMailWebService/0.7.289.1 Date: Sat, 11 Apr 2009 19:01:47 -0700 (PDT) From: Daniel Clemente Reply-To: dcl441-bugs@yahoo.com Subject: 23.0.92; A typing error in debugger-eval-expression stops the debugger To: emacs-pretest-bug@gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: FreeBSD 6.x (1) Eval anything with (debug) on it, like: (let* ((x 3) (y 1)) (debug) (dotimes (a x) (setq y (* y x))) y ) When the debugger appears, press e to evaluate some symbol. You can type = x RET to see the value of x. But now try a symbol which doesn't exist, for = instance z. You get: Debugger entered--Lisp error: (void-variable z) eval(z) eval-expression(z) debugger-eval-expression(z) call-interactively(debugger-eval-expression nil nil) recursive-edit() And at this point, your debugger session is (apparently) lost and you can= 't continue debugging your program: e.g. "c" doesn't work and it only says = (error "Cannot return from the debugger in an error") It is very annoying that Emacs makes you restart debugging just because y= ou did a typing error in a very infortunate moment. Even if there is some w= ay to get out of this =E2=80=9Eerror inside the evaluated expression=E2=80= =9C, the default behaviour is shocking. Can't errors like void-variable / void-function be ignored by default in = debugger-mode? -- Daniel =0A=0A=0A From cyd@stupidchicken.com Sun May 10 14:58:04 2009 Received: (at control) by emacsbugs.donarmstrong.com; 10 May 2009 21:58:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=AWL,VALID_BTS_CONTROL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4ALw1XL011494 for ; Sun, 10 May 2009 14:58:02 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 4456D57E22A; Sun, 10 May 2009 17:58:13 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: tag bugs Date: Sun, 10 May 2009 17:58:13 -0400 Message-ID: <87tz3sei2y.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii tags 2851 unreproducible, moreinfo tags 3188 unreproducible, moreinfo tags 2966 notabug, wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 16 16:32:52 2011 Received: (at control) by debbugs.gnu.org; 16 Sep 2011 20:32:52 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R4f5f-0002Lf-Uy for submit@debbugs.gnu.org; Fri, 16 Sep 2011 16:32:52 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R4f5c-0002LU-RU for control@debbugs.gnu.org; Fri, 16 Sep 2011 16:32:49 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1R4f0u-0005v4-OP for control@debbugs.gnu.org; Fri, 16 Sep 2011 22:27:56 +0200 Date: Fri, 16 Sep 2011 22:24:38 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Magne Ingebrigtsen Subject: control message for bug #2966 X-MailScanner-ID: 1R4f0u-0005v4-OP X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1316809676.86532@SYbJSPYcd7P8OyrhqLoTuQ X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) tags 2966 fixed close 2966 From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 16 16:42:58 2011 Received: (at 2966) by debbugs.gnu.org; 16 Sep 2011 20:42:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R4fFR-0002bS-7O for submit@debbugs.gnu.org; Fri, 16 Sep 2011 16:42:58 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R4fFG-0002b1-68 for 2966@debbugs.gnu.org; Fri, 16 Sep 2011 16:42:48 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1R4fAW-0006Db-BV; Fri, 16 Sep 2011 22:37:52 +0200 From: Lars Magne Ingebrigtsen To: dcl441-bugs@yahoo.com Subject: Re: 23.0.92; A typing error in debugger-eval-expression stops the debugger In-Reply-To: <663334.62553.qm@web53204.mail.re2.yahoo.com> (Daniel Clemente's message of "Sat, 11 Apr 2009 19:01:47 -0700 (PDT)") Date: Fri, 16 Sep 2011 22:24:32 +0200 Message-ID: References: <663334.62553.qm@web53204.mail.re2.yahoo.com> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Magma's =?iso-8859-1?Q?=5FMekan=EFk_Destrukt=EFw_Kommand=F6?= =?iso-8859-1?Q?h=5F=3A?= "Da Zeuhl Wortz =?iso-8859-1?Q?Mekan=EFk=22?= MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1R4fAW-0006Db-BV X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1316810272.42628@3Z2JUGqS8ypj82pPFRvWjQ X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 2966 Cc: 2966@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Daniel Clemente writes: > Eval anything with (debug) on it, like: > > (let* ((x 3) (y 1)) > (debug) > (dotimes (a x) (setq y (* y x))) > y > ) > > When the debugger appears, press e to evaluate some symbol. You can > type x RET to see the value of x. But now try a symbol which doesn't > exist, for instance z. You get: > > Debugger entered--Lisp error: (void-variable z) > eval(z) > eval-expression(z) > debugger-eval-expression(z) > call-interactively(debugger-eval-expression nil nil) > recursive-edit() > > And at this point, your debugger session is (apparently) lost and > you can't continue debugging your program: e.g. "c" doesn't work and > it only says (error "Cannot return from the debugger in an error") This was marked as notabug wontfix, but it's apparently been fixed anyway. :-) You now get a further bug and your environment isn't lost: Debugger entered--Lisp error: (void-variable z) eval(z nil) eval-expression(z nil) call-interactively(eval-expression nil nil) recursive-edit() debug() eval((debug) nil) eval-expression((debug) nil) call-interactively(eval-expression nil nil) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 16 17:02:07 2011 Received: (at 2966-done) by debbugs.gnu.org; 16 Sep 2011 21:02:07 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R4fXz-0004ed-7N for submit@debbugs.gnu.org; Fri, 16 Sep 2011 17:02:07 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R4fXx-0004eW-G1 for 2966-done@debbugs.gnu.org; Fri, 16 Sep 2011 17:02:06 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAIG3c05FpYYd/2dsb2JhbABBp194gVMBAQQBViMQCzQSFBgNJIgKtGKGeASgToRE X-IronPort-AV: E=Sophos;i="4.68,395,1312171200"; d="scan'208";a="136755265" Received: from 69-165-134-29.dsl.teksavvy.com (HELO pastel.home) ([69.165.134.29]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 16 Sep 2011 16:57:18 -0400 Received: by pastel.home (Postfix, from userid 20848) id 658BA58F87; Fri, 16 Sep 2011 16:57:18 -0400 (EDT) From: Stefan Monnier To: Lars Magne Ingebrigtsen Subject: Re: bug#2966: 23.0.92; A typing error in debugger-eval-expression stops the debugger Message-ID: References: <663334.62553.qm@web53204.mail.re2.yahoo.com> Date: Fri, 16 Sep 2011 16:57:18 -0400 In-Reply-To: (Lars Magne Ingebrigtsen's message of "Fri, 16 Sep 2011 22:24:32 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 2966-done Cc: dcl441-bugs@yahoo.com, 2966-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) >> And at this point, your debugger session is (apparently) lost and >> you can't continue debugging your program: e.g. "c" doesn't work and >> it only says (error "Cannot return from the debugger in an error") > This was marked as notabug wontfix, but it's apparently been fixed > anyway. :-) Indeed I fixed it a few months ago. Stefan From unknown Fri Aug 15 20:28:25 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 15 Oct 2011 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator