Lars Ingebrigtsen <larsi@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 36145) by debbugs.gnu.org; 1 May 2022 11:42:06 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 01 07:42:05 2022 Received: from localhost ([127.0.0.1]:59766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nl7xl-0003Iu-N6 for submit <at> debbugs.gnu.org; Sun, 01 May 2022 07:42:05 -0400 Received: from quimby.gnus.org ([95.216.78.240]:58350) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1nl7xj-0003IF-Sc for 36145 <at> debbugs.gnu.org; Sun, 01 May 2022 07:42:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=X+6VG42rYjht/Dw2uvJRbfmcMX7vmmoqh5ZFFyHI0zo=; b=VUxavayPzmE2hTMwXd7VuGH5IF Z/hBUapuBGZttYZXXsJR6aq9pF9mBP6BKpwIIyCMjA2jQuCKFG8mYB0q91JaOjUgbkVXLzKiyj4py q1HQYYZsAAE8Nusx061nhqeRmbyzWjKk2hxRcYfaywlayjQrHRHt4VuRAXnHKlUvgkng=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1nl7xa-0003nE-LY; Sun, 01 May 2022 13:41:57 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Noam Postavsky <npostavs@HIDDEN> Subject: Re: bug#36145: 26.2; Unable to "trigger another backtrace" References: <m21s03z0oi.fsf@HIDDEN> <87o9370x44.fsf@HIDDEN> <87a7eq21xo.fsf@HIDDEN> <87h88juo21.fsf@HIDDEN> <87ef3numow.fsf@HIDDEN> <878rzos3yf.fsf@HIDDEN> X-Now-Playing: Colleen's _A Flame My Love, A Frequency_: "Another World" Date: Sun, 01 May 2022 13:41:53 +0200 In-Reply-To: <878rzos3yf.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Wed, 22 Sep 2021 23:19:52 +0200") Message-ID: <87bkwho4xq.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen <larsi@HIDDEN> writes: >>> And it's also possible to trigger another backtrace with 'e', if using >>> it from a frame above the debugger's. I bump into this every so often >>> by accident, and it's quite annoying. Of course [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36145 Cc: 36145 <at> debbugs.gnu.org, Xu Chunyang <mail@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Lars Ingebrigtsen <larsi@HIDDEN> writes: >>> And it's also possible to trigger another backtrace with 'e', if using >>> it from a frame above the debugger's. I bump into this every so often >>> by accident, and it's quite annoying. Of course, I'm always in the >>> middle of debugging something else so I forget about it, but I'd like to >>> change it. Patch attached. > > Yes, that's super duper annoying, and it'd be really great to get that > fixed. I respun the patch, and observed that it did, indeed, not work, so I've reworked it (instead of inhibiting the debugger, I just use condition-case in these commands), and it now seems to work fine. Oh, and instead of having a prefix, I added a user option (both because I think some people want to have the old action always, and because the prefix was already taken in edebug now). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
bug-gnu-emacs@HIDDEN
:bug#36145
; Package emacs
.
Full text available.Received: (at 36145) by debbugs.gnu.org; 1 May 2022 11:07:50 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 01 07:07:50 2022 Received: from localhost ([127.0.0.1]:59723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nl7Qb-0000H1-U3 for submit <at> debbugs.gnu.org; Sun, 01 May 2022 07:07:50 -0400 Received: from quimby.gnus.org ([95.216.78.240]:58174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1nl7Qa-0000Gp-GD for 36145 <at> debbugs.gnu.org; Sun, 01 May 2022 07:07:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=XAyduK+V1vTgzY5MOaOicKs8GfYth+KGxvABj4KrFjc=; b=ddrjP50w1Rb1Ub5OJ3Iw0lGXr1 SYOwkT9CxabAwd7ob64ZpumeOrqV0NfQiHR6L4QOkyIJYjpn1eugTe6G3tIfP1OTFIdAXzZmrMDnQ BrcuOw7v7s6c1X28oxzSNhugyzqFb1Bk6a8gFgown9CSwhG3EX7U1HPjYRL4wAp9JUPA=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1nl7QR-0003PO-8u; Sun, 01 May 2022 13:07:41 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Xu Chunyang <mail@HIDDEN> Subject: Re: bug#36145: 26.2; Unable to "trigger another backtrace" References: <m21s03z0oi.fsf@HIDDEN> X-Now-Playing: David Byrne's _American Utopia_: "This is That" Date: Sun, 01 May 2022 13:07:38 +0200 In-Reply-To: <m21s03z0oi.fsf@HIDDEN> (Xu Chunyang's message of "Sun, 09 Jun 2019 15:18:37 +0800") Message-ID: <87fslto6it.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Xu Chunyang <mail@HIDDEN> writes: >> temporarily set according to ‘eval-expression-debug-on-error’. If the >> latter variable is non-‘nil’, ‘debug-on-error’ will temporarily be set >> to ‘t’. This means that any furthe [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36145 Cc: 36145 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Xu Chunyang <mail@HIDDEN> writes: >> temporarily set according to =E2=80=98eval-expression-debug-on-error=E2= =80=99. If the >> latter variable is non-=E2=80=98nil=E2=80=99, =E2=80=98debug-on-error=E2= =80=99 will temporarily be set >> to =E2=80=98t=E2=80=99. This means that any further errors that occur w= hile doing a >> debugging session will (by default) trigger another backtrace. > > Text before "This means.." is correct, but the conclusion seems > incorrect, to reproduce > > - emacs -Q > - M-: (/ 1 0) ;; enter the debugger > - M-: (/ 2 0) ;; just message the error, no another backtrace I've now fixed the documentation here in Emacs 29. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
bug-gnu-emacs@HIDDEN
:bug#36145
; Package emacs
.
Full text available.Lars Ingebrigtsen <larsi@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Lars Ingebrigtsen <larsi@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 36145) by debbugs.gnu.org; 22 Sep 2021 21:20:05 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 22 17:20:05 2021 Received: from localhost ([127.0.0.1]:51904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mT9ev-0006QD-1M for submit <at> debbugs.gnu.org; Wed, 22 Sep 2021 17:20:05 -0400 Received: from quimby.gnus.org ([95.216.78.240]:34354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1mT9et-0006PX-6I for 36145 <at> debbugs.gnu.org; Wed, 22 Sep 2021 17:20:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ES7mr6C/L/GM9NSoe97ki/yvTvignS3ZZcVPm54zzqc=; b=eSVfqFyho3ZLXL6SX5hzpWl+iM nqhB3q4i4eoggqLAB1g1VNOHWLtS9HH0nP9+Wx09EhdK1o4JRYuxNHcc9S5GhO57cfyKOSExrQ0At 3hAEgxK5+zZk7tud4MLRM0xyyfsDv9NfLcgO4pqGAzXLSKRC3wiEv9TdF22Rj09b1O04=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1mT9ej-0007RS-Gk; Wed, 22 Sep 2021 23:19:56 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Noam Postavsky <npostavs@HIDDEN> Subject: Re: bug#36145: 26.2; Unable to "trigger another backtrace" References: <m21s03z0oi.fsf@HIDDEN> <87o9370x44.fsf@HIDDEN> <87a7eq21xo.fsf@HIDDEN> <87h88juo21.fsf@HIDDEN> <87ef3numow.fsf@HIDDEN> X-Now-Playing: Don Armando's 2nd Avenue Band's _Don Armando's 2nd Avenue Band_: "How to Handle a Woman" Date: Wed, 22 Sep 2021 23:19:52 +0200 In-Reply-To: <87ef3numow.fsf@HIDDEN> (Noam Postavsky's message of "Fri, 21 Jun 2019 08:50:39 -0400") Message-ID: <878rzos3yf.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Noam Postavsky <npostavs@HIDDEN> writes: >> And it's also possible to trigger another backtrace with 'e', if using >> it from a frame above the debugger's. I bump into this every so often >> by accident, and it's quite annoying. Of course, I [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36145 Cc: 36145 <at> debbugs.gnu.org, Xu Chunyang <mail@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Noam Postavsky <npostavs@HIDDEN> writes: >> And it's also possible to trigger another backtrace with 'e', if using >> it from a frame above the debugger's. I bump into this every so often >> by accident, and it's quite annoying. Of course, I'm always in the >> middle of debugging something else so I forget about it, but I'd like to >> change it. Patch attached. Yes, that's super duper annoying, and it'd be really great to get that fixed. >> Subject: [PATCH] Suppress recursive debugger for 'e' command (Bug#36145) > > Uh, in my haste to put something down before I forgot about it again, I > neglected to test this properly; it doesn't actually work. So I guess > consider just the doc part of the patch as the proposal, something > working to follow later. This was two years ago -- did you get any further with this? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
bug-gnu-emacs@HIDDEN
:bug#36145
; Package emacs
.
Full text available.Noam Postavsky <npostavs@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 36145) by debbugs.gnu.org; 21 Jun 2019 12:50:51 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 21 08:50:51 2019 Received: from localhost ([127.0.0.1]:49905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1heJ0E-0001C0-Td for submit <at> debbugs.gnu.org; Fri, 21 Jun 2019 08:50:51 -0400 Received: from mail-io1-f46.google.com ([209.85.166.46]:36693) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <npostavs@HIDDEN>) id 1heJ0A-0001Bg-P6; Fri, 21 Jun 2019 08:50:47 -0400 Received: by mail-io1-f46.google.com with SMTP id h6so1195130ioh.3; Fri, 21 Jun 2019 05:50:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=QewY64qFFqPHiWTxVU6X87CFNZZIDenGQZGoHiXxkhA=; b=iIL4QyVhkMtQKb7jy/MfFML5cw5G45q5j6IhD1s3TJA/OrJtx/obasGT1sJm5z6L7e oOGhKJvJAT3VaDN7/UFl62ysJ1BMNbW8eGOgWdAei63nsygKxbPnzauaakV5mgkHZPLw DnbHpOKlRZYBO+m9sy35T+FjwC8a8K0vJVDf+J8Y6LhK22wzXCW+Rgt5SJdw4ddxozKh +8h7Vlb/WM5Zr/WXgSkKlBSI5Ffwou8IJsHWHfIMg3gC/ZZ6TtU5FBTMN7IuWohhkE7v bgX/btFz2InGWcAFNIMQthtl8DOGVqkfR0Uqu04TkSbCb3sXSfcqyaCjuawO7lUNVmLd jegA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=QewY64qFFqPHiWTxVU6X87CFNZZIDenGQZGoHiXxkhA=; b=fRz0oL8gsaI1W0pSGb0afeW/veqQEbgmTd8d0/7mS6Wj7PVZ2cu53XxNXfpV35o5mU 0xZ70cte2bMNunYrj8e4W9BPhxhsQy0HvVMMNmbW5xJtNR4ZDvvvxdNZBpsDoAPcSWJC WCsJjy7tiI/GP30iaqam56uWGEngnBGIHDCbcr1B6PjZaXgJ14fLYt+SABtANUgCe5Ux dNsbDya2T3MYl751CIMjxV3tRvjvwHdTTWjv81Xzsk3CY9I7LB++AGMdtujECnVW/BHe xmObzxN2kofSOyVkRiMb2BeHQPLMaf3VVPQTC7/4LbJdw6fDnkp+VIwHszTFdbBiJ/Lf C3qw== X-Gm-Message-State: APjAAAU5c/5RXPmA3N8Lm4yfnfvGn4oUsUcuCL9Id/5sN+C8vp4/9okp 414l+tWgbaaG0MSmq3AcJuWTNy8v X-Google-Smtp-Source: APXvYqxsoJJlWuv3ic7lgOXrYXDoS6hZtKcM/bTuNQ8tYSEvJwP3GC6hD6lkk0LGrYIjA7d+nL6sBg== X-Received: by 2002:a05:6638:6a3:: with SMTP id d3mr47464461jad.33.1561121440923; Fri, 21 Jun 2019 05:50:40 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id n7sm2837511ioo.79.2019.06.21.05.50.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Jun 2019 05:50:40 -0700 (PDT) From: Noam Postavsky <npostavs@HIDDEN> To: Xu Chunyang <mail@HIDDEN> Subject: Re: bug#36145: 26.2; Unable to "trigger another backtrace" References: <m21s03z0oi.fsf@HIDDEN> <87o9370x44.fsf@HIDDEN> <87a7eq21xo.fsf@HIDDEN> <87h88juo21.fsf@HIDDEN> Date: Fri, 21 Jun 2019 08:50:39 -0400 In-Reply-To: <87h88juo21.fsf@HIDDEN> (Noam Postavsky's message of "Fri, 21 Jun 2019 08:21:10 -0400") Message-ID: <87ef3numow.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36145 Cc: 36145 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) tags 36145 - patch quit > And it's also possible to trigger another backtrace with 'e', if using > it from a frame above the debugger's. I bump into this every so often > by accident, and it's quite annoying. Of course, I'm always in the > middle of debugging something else so I forget about it, but I'd like to > change it. Patch attached. > > Subject: [PATCH] Suppress recursive debugger for 'e' command (Bug#36145) Uh, in my haste to put something down before I forgot about it again, I neglected to test this properly; it doesn't actually work. So I guess consider just the doc part of the patch as the proposal, something working to follow later.
bug-gnu-emacs@HIDDEN
:bug#36145
; Package emacs
.
Full text available.Noam Postavsky <npostavs@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Noam Postavsky <npostavs@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 36145) by debbugs.gnu.org; 21 Jun 2019 12:21:22 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 21 08:21:22 2019 Received: from localhost ([127.0.0.1]:49845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1heIXi-0006jo-28 for submit <at> debbugs.gnu.org; Fri, 21 Jun 2019 08:21:22 -0400 Received: from mail-io1-f43.google.com ([209.85.166.43]:35421) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <npostavs@HIDDEN>) id 1heIXe-0006jR-VI; Fri, 21 Jun 2019 08:21:20 -0400 Received: by mail-io1-f43.google.com with SMTP id m24so809996ioo.2; Fri, 21 Jun 2019 05:21:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=eaUBos5j0nUbkYs/4pGrgCH7FHn5uUnMyv5iOr4U+A8=; b=lZ1zDh9t9nKQzlUWd4f2k+9BdR2I71ddvhsNYWVN8U8SZ6sfnbsbLAAsSFhu7g2P+I 8p4CTk8X2Z38SEBmy1EO/5fVNhygGwTtHn+XOvGxY5dbpkotH8u6Hq65UJBcrnypbl5+ pLmJ+NNBj95DohubnlOKwIF0y/c3nec8sQOG86JOkRTodKf7vQj7CRwzBwF7JPTMElPE 0FRX24C6MQJtbblqvOEU3kvq7XE5OxDCcqakFrIMOQefDcRH0uVmIu8DUF35h3wYHsDn ndFerZ56GuxRSJB4M2RdjU02IPWWqvSmqMbwbg0EBk5KEPMKH/iMEHHJkcBVEs6ouQ/H tlgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=eaUBos5j0nUbkYs/4pGrgCH7FHn5uUnMyv5iOr4U+A8=; b=S665QI3f7vB/4eMxQMjbznAG1wHjvSd206nnEtJXTwZtfgKRUfALeO5zhanOYeH7Z5 glrtfA55Ky3J6wU69A4tmx8xr91T1yHr15M0HIdPJJzKzt3Q2+aIowvllk0FX+CAJFkq G36WhEqbGUmTfa2EKiGD1Kle6knu5yPmUQAaRIHPyeHOlJLc26BVfttvM/AWhdYGRrbn y48LC3pTbqk3M8zvOG5a3YJZT7cuMlMsAOpU8xeA827jCBVGT5vASOtN0JW43Aqf1Sch Db8+1fQFAnw0gE8cPmlOKJp18R2hSiD7VxkDbNUYs6A9NWALMyAF8ylPTQeeanA+MbqY fZ6w== X-Gm-Message-State: APjAAAV9nPDuTKgGDk0y9oRAP3JZUvMn3Hpj8S4Q9TYPfM78MtJeLtWI v3Nbkx2t1KodsCBndEVr91+aF38c X-Google-Smtp-Source: APXvYqxqRt7F9QYkHWvKaTXdVP/t8Uf9Q7XdvIEXU8aV1dDLQe3yxAP4qqXMa5rrhTc0vh8Xh+1B+A== X-Received: by 2002:a5e:d51a:: with SMTP id e26mr826558iom.71.1561119672866; Fri, 21 Jun 2019 05:21:12 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id y18sm2682222iob.64.2019.06.21.05.21.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Jun 2019 05:21:11 -0700 (PDT) From: Noam Postavsky <npostavs@HIDDEN> To: Xu Chunyang <mail@HIDDEN> Subject: Re: bug#36145: 26.2; Unable to "trigger another backtrace" References: <m21s03z0oi.fsf@HIDDEN> <87o9370x44.fsf@HIDDEN> <87a7eq21xo.fsf@HIDDEN> Date: Fri, 21 Jun 2019 08:21:10 -0400 In-Reply-To: <87a7eq21xo.fsf@HIDDEN> (Noam Postavsky's message of "Sun, 09 Jun 2019 11:50:11 -0400") Message-ID: <87h88juo21.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36145 Cc: 36145 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain severity 36145 minor tags 36145 + patch quit > Although it is possible to trigger another backtrace if the first one > was from calling `debug' directly, e.g., M-: (debug) RET. And it's also possible to trigger another backtrace with 'e', if using it from a frame above the debugger's. I bump into this every so often by accident, and it's quite annoying. Of course, I'm always in the middle of debugging something else so I forget about it, but I'd like to change it. Patch attached. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Suppress-recursive-debugger-for-e-command-Bug-36145.patch Content-Description: patch From c6d52846598eeaf200c553ff0ac9f16db612b64e Mon Sep 17 00:00:00 2001 From: Noam Postavsky <npostavs@HIDDEN> Date: Fri, 21 Jun 2019 08:14:20 -0400 Subject: [PATCH] Suppress recursive debugger for 'e' command (Bug#36145) * lisp/emacs-lisp/debug.el (debugger-eval-expression): * lisp/emacs-lisp/edebug.el (edebug-eval-expression) (edebug-eval-last-sexp, edebug-eval-print-last-sexp): Suppress debugger with inhibit-debugger, unless given a prefix argument. * doc/lispref/edebug.texi (Edebug Eval): * doc/lispref/debugging.texi (Debugger Commands, Backtraces): Document new behavior. (Using Debugger): Remove incorrect paragraph about debug-on-error. * etc/NEWS: Announce new behavior. --- doc/lispref/debugging.texi | 15 ++++----------- doc/lispref/edebug.texi | 10 +++++++--- etc/NEWS | 11 +++++++++++ lisp/emacs-lisp/debug.el | 12 ++++++++---- lisp/emacs-lisp/edebug.el | 33 +++++++++++++++++++++------------ 5 files changed, 51 insertions(+), 30 deletions(-) diff --git a/doc/lispref/debugging.texi b/doc/lispref/debugging.texi index 9e43343310..7538e70ab5 100644 --- a/doc/lispref/debugging.texi +++ b/doc/lispref/debugging.texi @@ -383,16 +383,6 @@ Using Debugger rather than bury it. Consult the variable's documentation for more possibilities.) - When the debugger has been entered, the @code{debug-on-error} -variable is temporarily set according to -@code{eval-expression-debug-on-error}. If the latter variable is -non-@code{nil}, @code{debug-on-error} will temporarily be set to -@code{t}. This means that any further errors that occur while doing a -debugging session will (by default) trigger another backtrace. If -this is not what you want, you can either set -@code{eval-expression-debug-on-error} to @code{nil}, or set -@code{debug-on-error} to @code{nil} in @code{debugger-mode-hook}. - The debugger itself must be run byte-compiled, since it makes assumptions about the state of the Lisp interpreter. These assumptions are false if the debugger is running interpreted. @@ -527,7 +517,10 @@ Debugger Commands temporarily restores their values from outside the debugger, so you can examine and change them. This makes the debugger more transparent. By contrast, @kbd{M-:} does nothing special in the debugger; it shows you -the variable values within the debugger. +the variable values within the debugger. By default, this command +suppresses the debugger during evaluation, so that an error in the +evaluated expression won't add a new error on top of the existing one. +Use the prefix argument to override this. @item R Like @kbd{e}, but also save the result of evaluation in the diff --git a/doc/lispref/edebug.texi b/doc/lispref/edebug.texi index 2c0ee3969b..823a5009e8 100644 --- a/doc/lispref/edebug.texi +++ b/doc/lispref/edebug.texi @@ -681,8 +681,11 @@ Edebug Eval @table @kbd @item e @var{exp} @key{RET} Evaluate expression @var{exp} in the context outside of Edebug -(@code{edebug-eval-expression}). That is, Edebug tries to minimize its -interference with the evaluation. +(@code{edebug-eval-expression}). That is, Edebug tries to minimize +its interference with the evaluation. By default, this command +suppresses the debugger during evaluation, so that an error in the +evaluated expression won't add a new error on top of the existing one. +Use a prefix argument to override this. @item M-: @var{exp} @key{RET} Evaluate expression @var{exp} in the context of Edebug itself @@ -690,7 +693,8 @@ Edebug Eval @item C-x C-e Evaluate the expression before point, in the context outside of Edebug -(@code{edebug-eval-last-sexp}). +(@code{edebug-eval-last-sexp}). Similar to @key{e}, this command +suppresses the debugger unless a prefix argument is used. @end table @cindex lexical binding (Edebug) diff --git a/etc/NEWS b/etc/NEWS index 4a168d5678..43dc6ea969 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1074,6 +1074,11 @@ Backtrace mode adds fontification and commands for changing the appearance of backtrace frames. See the node "(elisp) Backtraces" in the Elisp manual for documentation of the new mode and its commands. ++++ +*** Recursive debugging is suppressed by default for 'e'. +That is bound to the command 'debug-eval-expression'. Use a prefix +argument to override this. + ** Edebug +++ @@ -1098,6 +1103,12 @@ The new 'backtrace-goto-source' command, bound to 's', works in Edebug's backtraces on backtrace frames whose source code has been instrumented by Edebug. ++++ +*** Backtrace debugging is suppressed by default for 'e' and 'C-x C-e'. +Those are bound to the commands 'edebug-eval-expression' and +'edebug-eval-last-sexp', respectively. Use a prefix argument to +override this. + ** Enhanced xterm support *** New variable 'xterm-set-window-title' controls whether Emacs sets diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el index 8989aa0719..20aceccb68 100644 --- a/lisp/emacs-lisp/debug.el +++ b/lisp/emacs-lisp/debug.el @@ -516,17 +516,21 @@ (defun debugger--backtrace-base () 'debug--implement-debug-on-entry) (t 'debug))) -(defun debugger-eval-expression (exp &optional nframe) +(defun debugger-eval-expression (exp &optional nframe allow-recursive-debug) "Eval an expression, in an environment like that outside the debugger. -The environment used is the one when entering the activation frame at point." +The environment used is the one when entering the activation frame at point. +With a prefix argument, errors signaled while evaluating may +trigger the debugger again." (interactive - (list (read--expression "Eval in stack frame: "))) + (list (read--expression "Eval in stack frame: ") + nil current-prefix-arg)) (let ((nframe (or nframe (condition-case nil (1+ (debugger-frame-number 'skip-base)) (error 0)))) ;; If on first line. (base (debugger--backtrace-base))) (debugger-env-macro - (let ((val (backtrace-eval exp nframe base))) + (let ((val (let ((inhibit-debugger (not allow-recursive-debug))) + (backtrace-eval exp nframe base)))) (prog1 (debugger--print val t) (let ((str (eval-expression-print-format val))) diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el index ab5553b4e8..1f9d994fed 100644 --- a/lisp/emacs-lisp/edebug.el +++ b/lisp/emacs-lisp/edebug.el @@ -3580,28 +3580,37 @@ (defalias 'edebug-prin1-to-string #'cl-prin1-to-string) (defalias 'edebug-format #'format-message) (defalias 'edebug-message #'message) -(defun edebug-eval-expression (expr) +(defun edebug-eval-expression (expr &optional allow-debugger) "Evaluate an expression in the outside environment. If interactive, prompt for the expression. -Print result in minibuffer." - (interactive (list (read--expression "Eval: "))) +Print result in minibuffer. +With a prefix argument, errors signaled while evaluating may +trigger the debugger." + (interactive (list (read--expression "Eval: ") + current-prefix-arg)) (princ (edebug-outside-excursion - (setq values (cons (edebug-eval expr) values)) + (push (let ((inhibit-debugger (not allow-debugger))) + (edebug-eval expr)) + values) (concat (edebug-safe-prin1-to-string (car values)) (eval-expression-print-format (car values)))))) -(defun edebug-eval-last-sexp () +(defun edebug-eval-last-sexp (&optional allow-debugger) "Evaluate sexp before point in the outside environment. -Print value in minibuffer." - (interactive) - (edebug-eval-expression (edebug-last-sexp))) +Print value in minibuffer. +With a prefix argument, errors signaled while evaluating may +trigger the debugger." + (interactive "P") + (edebug-eval-expression (edebug-last-sexp allow-debugger))) -(defun edebug-eval-print-last-sexp () +(defun edebug-eval-print-last-sexp (&optional allow-debugger) "Evaluate sexp before point in outside environment; insert value. -This prints the value into current buffer." - (interactive) - (let* ((form (edebug-last-sexp)) +This prints the value into current buffer. +With a prefix argument, errors signaled while evaluating may +trigger the debugger." + (interactive "P") + (let* ((form (edebug-last-sexp allow-debugger)) (result-string (edebug-outside-excursion (edebug-safe-prin1-to-string (edebug-safe-eval form)))) -- 2.11.0 --=-=-=--
bug-gnu-emacs@HIDDEN
:bug#36145
; Package emacs
.
Full text available.Received: (at 36145) by debbugs.gnu.org; 9 Jun 2019 15:50:20 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 09 11:50:20 2019 Received: from localhost ([127.0.0.1]:55244 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ha05L-00029L-Un for submit <at> debbugs.gnu.org; Sun, 09 Jun 2019 11:50:20 -0400 Received: from mail-it1-f179.google.com ([209.85.166.179]:51421) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <npostavs@HIDDEN>) id 1ha05J-000296-W4 for 36145 <at> debbugs.gnu.org; Sun, 09 Jun 2019 11:50:18 -0400 Received: by mail-it1-f179.google.com with SMTP id m3so9726376itl.1 for <36145 <at> debbugs.gnu.org>; Sun, 09 Jun 2019 08:50:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=4TKMl6kn+NxO16/pk8QXXMsXOW8BCTv2CCJkcSCL4VM=; b=pMMUKDynQWiK++1H0jAXPng/qPplwkrG91sZdfGgtYUWDkYAojruFICsqR73Dowr2a xlrw/XUtqUE9Lt2gdtnenSQZooDFz4t3CU5UtyDc4UehNE0DYFaAhWYLnBoz8nh/y3Wy DXfOMMLx2gBwrmJT9qUJFCP7T1SX+gUFeEgbIdudtFZc9+FHllGdN4wPEkXM4WEnkjrN 6AuDSe1styMOJFpwMkowxJvOZuZ1mt3MUP9PxRqlXIswTTbqO0Nid3dEwU7n+aNov2Sg lEm4oBE2ERGQPCeIuZCxSYWBSOnPVMXfQG6OIPbIGKNJUieAmobynuKrkcsI6GNHca+g AroQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=4TKMl6kn+NxO16/pk8QXXMsXOW8BCTv2CCJkcSCL4VM=; b=ji7EMDCAuY99nEn7Qea6cQ3WJqZvEZ+wBkIWFrWm3LoB7P0fMrDLAbuMxeUEb71mZS DK0aUoE+sLWzFFsFFYG8IRJANfcbIettvpu3ysttbWe5JR8DGonE1gV5whgLVzv7fuMU uyu2inrV0wOtNrhtAVIvSzHCGp11XCVtubgzSEdwx+GZfnVeOPDodwa4P6xiik6qxoKN JrolmKr6Iyibm2VIURP6Sp7WQBosnJCu8h/Uz+ZxD37LrAJGBKSwybb0hDxBMVwatNiK SeiRWjpSeFNXMwelcSkFxY1GXDjFrNOujz9f+goFOU+zL57FpvB5hCxbgWEaXQ7Ce0vV SdDQ== X-Gm-Message-State: APjAAAWNgnZQcJmZrz0QK3PsIjgjAiKFL7hgoDW50Isiq8XOZ53l4JM0 5RPahsijXjnAAO2EXx98sJ3t24bg X-Google-Smtp-Source: APXvYqwdVhRoMSHCi+T7Cyfu63s0KbzgCIsV07/4J1iwi2z8D2xWPUic7oJkJhK3P3JJvOg9xL+lSA== X-Received: by 2002:a24:ac58:: with SMTP id m24mr12108975iti.65.1560095412230; Sun, 09 Jun 2019 08:50:12 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id r143sm559941ita.0.2019.06.09.08.50.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 09 Jun 2019 08:50:11 -0700 (PDT) From: Noam Postavsky <npostavs@HIDDEN> To: Xu Chunyang <mail@HIDDEN> Subject: Re: bug#36145: 26.2; Unable to "trigger another backtrace" References: <m21s03z0oi.fsf@HIDDEN> <87o9370x44.fsf@HIDDEN> Date: Sun, 09 Jun 2019 11:50:11 -0400 In-Reply-To: <87o9370x44.fsf@HIDDEN> (Noam Postavsky's message of "Sun, 09 Jun 2019 08:19:39 -0400") Message-ID: <87a7eq21xo.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36145 Cc: 36145 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Noam Postavsky <npostavs@HIDDEN> writes: > Xu Chunyang <mail@HIDDEN> writes: > >> (info "(elisp) Using Debugger") says >> >>> When the debugger has been entered, the =E2=80=98debug-on-error=E2=80= =99 variable is >>> temporarily set according to =E2=80=98eval-expression-debug-on-error=E2= =80=99. If the >>> latter variable is non-=E2=80=98nil=E2=80=99, =E2=80=98debug-on-error= =E2=80=99 will temporarily be set >>> to =E2=80=98t=E2=80=99. This means that any further errors that occur = while doing a >>> debugging session will (by default) trigger another backtrace. >> >> Text before "This means.." is correct, but the conclusion seems >> incorrect, to reproduce >> >> - emacs -Q >> - M-: (/ 1 0) ;; enter the debugger >> - M-: (/ 2 0) ;; just message the error, no another backtrace >> >> Am I misunderstanding "trigger another backtrace"? > > I think this is a documentation bug. You don't get another backtrace > because inhibit-debugger is bound to t before invoking the debugger. Although it is possible to trigger another backtrace if the first one was from calling `debug' directly, e.g., M-: (debug) RET.
bug-gnu-emacs@HIDDEN
:bug#36145
; Package emacs
.
Full text available.Received: (at 36145) by debbugs.gnu.org; 9 Jun 2019 12:19:47 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 09 08:19:47 2019 Received: from localhost ([127.0.0.1]:54407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hZwnb-0005ZA-8m for submit <at> debbugs.gnu.org; Sun, 09 Jun 2019 08:19:47 -0400 Received: from mail-io1-f45.google.com ([209.85.166.45]:34887) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <npostavs@HIDDEN>) id 1hZwna-0005Yw-8w for 36145 <at> debbugs.gnu.org; Sun, 09 Jun 2019 08:19:46 -0400 Received: by mail-io1-f45.google.com with SMTP id m24so4833156ioo.2 for <36145 <at> debbugs.gnu.org>; Sun, 09 Jun 2019 05:19:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=mEfRtWd+JwvYsyzjSoYQoTnufkmEnlVBajz1nAOZY2o=; b=aRltJXmVM9arTSTgty5atc1pHeSzCEOIqxTxf5wACUbhW9oOg4VKYO1qXO+Jc1amTJ 9D2Eq6ezxmgpk5Ypl9sCtKOHhlSwzl14KDNKqjKh5JTy55Z4W21Iwo7wMSch0X4tCwE3 h36kZXlPAqL38kJEvTAdq9m4enAO5eEsjF1LPVG5ocW0tgoT/9qF2yddL47AVV9eoyq1 lY9GEalhNMDXdDS0kIGw2BUdYWUxdjiBu2iH6+ftuh9YnUdt7la2CUoBfkbyQsQqyU2V DuxmFSPP8xXwouHsIy8zsKBkeYKBKrMBLH7UT8Yt1vQx1HJhUIh3bmx/y+Dpip9IPw8C 5gdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=mEfRtWd+JwvYsyzjSoYQoTnufkmEnlVBajz1nAOZY2o=; b=cwvoODddXdF7SRiGxIBeodJ8kkme2UavDikpNhvsQnX63VIbjLN0FsUGDSBCjrOQFz f2KLRAq7mpVToB+a0QvzzJdkOcymjt3II1jn0A0Il/JMylQCSPozLb9KLo3HX7qhOp6F xWFEjw0Tf00DGCzxlaRtJCHTaztWpx6GW5QX4pyAeEhNkM22rcJntxHwYxyTL/pNYJco ss7nL5O93ijQBnm9fSahsvLLFxYkHGus3BlJr5bJolXWWKFtSRfmt5fy9YyYkzilJBai OvkxksTsFr44ww/fokeTq67GYwK/a4D32TPJ3H36giTvFcQ1LIDEISeKGc1TBjFhhQdI LCZA== X-Gm-Message-State: APjAAAV/1ViBO0DDaxDVcBGIoSEWCgLPrfnoet6AQWYJYHv3BRcFZmSh zYBIyoJ4vCd4njX0El+xFO8dvo2e X-Google-Smtp-Source: APXvYqynhmr5Rx3tMsxCcfJWaH2oww+4MuXLduFXZXKFv8/759hiP+5ber1SGklW8UBIz1UY0atNog== X-Received: by 2002:a6b:4f15:: with SMTP id d21mr14222010iob.210.1560082780488; Sun, 09 Jun 2019 05:19:40 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id r62sm3467143ita.37.2019.06.09.05.19.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 09 Jun 2019 05:19:39 -0700 (PDT) From: Noam Postavsky <npostavs@HIDDEN> To: Xu Chunyang <mail@HIDDEN> Subject: Re: bug#36145: 26.2; Unable to "trigger another backtrace" References: <m21s03z0oi.fsf@HIDDEN> Date: Sun, 09 Jun 2019 08:19:39 -0400 In-Reply-To: <m21s03z0oi.fsf@HIDDEN> (Xu Chunyang's message of "Sun, 09 Jun 2019 15:18:37 +0800") Message-ID: <87o9370x44.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36145 Cc: 36145 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Xu Chunyang <mail@HIDDEN> writes: > (info "(elisp) Using Debugger") says > >> When the debugger has been entered, the =E2=80=98debug-on-error=E2=80=99= variable is >> temporarily set according to =E2=80=98eval-expression-debug-on-error=E2= =80=99. If the >> latter variable is non-=E2=80=98nil=E2=80=99, =E2=80=98debug-on-error=E2= =80=99 will temporarily be set >> to =E2=80=98t=E2=80=99. This means that any further errors that occur w= hile doing a >> debugging session will (by default) trigger another backtrace. > > Text before "This means.." is correct, but the conclusion seems > incorrect, to reproduce > > - emacs -Q > - M-: (/ 1 0) ;; enter the debugger > - M-: (/ 2 0) ;; just message the error, no another backtrace > > Am I misunderstanding "trigger another backtrace"? I think this is a documentation bug. You don't get another backtrace because inhibit-debugger is bound to t before invoking the debugger. This has been the case since Emacs 24.3 when inhibit-debugger was introduced [1: 45b82ad0eb]. But even before that, debug-on-error was in fact bound to nil when entering the debugger (and that has been the case since the initial revision of debug.el), so the documentation was always wrong (although it looks like you could trigger another backtrace with M-: because eval-expression would rebind debug-on-error according to eval-expression-debug-on-error, so the conclusion used to be correct, even though the explanation was always wrong). [1: 45b82ad0eb]: 2012-09-11 20:14:50 -0400 * src/eval.c: Add `inhibit-debugger'. https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3D45b82ad0ebedaa1b= 7094912e218bea1510c33feb
bug-gnu-emacs@HIDDEN
:bug#36145
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 9 Jun 2019 07:18:49 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 09 03:18:49 2019 Received: from localhost ([127.0.0.1]:54163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hZs6L-0004J7-5R for submit <at> debbugs.gnu.org; Sun, 09 Jun 2019 03:18:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:45925) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <mail@HIDDEN>) id 1hZs6J-0004Ix-UT for submit <at> debbugs.gnu.org; Sun, 09 Jun 2019 03:18:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44511) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from <mail@HIDDEN>) id 1hZs6J-0007Ih-2T for bug-gnu-emacs@HIDDEN; Sun, 09 Jun 2019 03:18:47 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_20,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <mail@HIDDEN>) id 1hZs6I-0004Un-7e for bug-gnu-emacs@HIDDEN; Sun, 09 Jun 2019 03:18:47 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:49035) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <mail@HIDDEN>) id 1hZs6H-0004SK-SR for bug-gnu-emacs@HIDDEN; Sun, 09 Jun 2019 03:18:46 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 0363F354 for <bug-gnu-emacs@HIDDEN>; Sun, 9 Jun 2019 03:18:42 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sun, 09 Jun 2019 03:18:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xuchunyang.me; h=from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=fm1; bh=GR1ZRRmmUX+Vn2Vc6ZUEKQluXr dUsOccpnnAaU9JcTM=; b=PVUbSP5Og/j4z1fAXQVCoZqKw8Pgwyz95M3jM161Jw coC0nk8Xb+QMfQeLb/kO1cQxt41+jxV+n1Nm6J979YiHC4A+HhK0ek7ArBElmA4n zt5ftjbRJaMWXueMCbZZ+8Dcz1A4OuN/kmkYmbR5igI8+klhAIcPh8AHtVGZlxD5 0GIx9gCgx00Y/EE0UGxD3yy1ogAUJPuX1tIp2wVxR2XgsZaR4veiiF63u5SyYceJ YoexnxY4JL91EdWsT7s4tJCOenGm8jxjLQdF3q9KWWAm6vJ8EJd0XbmUwb7OM7ju XdG2CLUYedRelCaXJFO75ls2QBK1iC4As99nI27YG45A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=GR1ZRR mmUX+Vn2Vc6ZUEKQluXrdUsOccpnnAaU9JcTM=; b=T/6EBYdzcdAzkb9TWDSmR+ 9UGJmABxHIIbC13PWJo2WxDNqf1rsohoHX0ronTj9ZRst7wfR/QuuyrT+wT7xSOd geQoHraD1shC/1ZXcCWcyrjiNd31e8E7V2vSOk2WaWbXKh/n6QIGK/auyQg86QaP WD0+kAlQJZZSLYcilpy4E02tOCj871+ksafgBZrvj+/4TEmRSR4iTb8eNYkWqkfe SlnvvL22IwXQv7QjzkmCg2LtjwNGDDiOxrpqE+2UiM2gPxigOeuu/f7rODtVYiqb Y/FSrd9+Jzokt0LeavoBcpvvgPKOtXztDVSSXv4vxQjia5CewB0j/OOyJSYSQ7gw == X-ME-Sender: <xms:0rL8XDxjnetR5GRYbtCbWYCvn5YpbtlHrLnbnwuddKgQGRLxhVEc2A> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudegledguddugecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufgffffkgggtgfesthhqre dttderjeenucfhrhhomhepighuucevhhhunhihrghnghcuoehmrghilhesgihutghhuhhn higrnhhgrdhmvgeqnecukfhppeduudejrdelfedrvddtiedrudeffeenucfrrghrrghmpe hmrghilhhfrhhomhepmhgrihhlseiguhgthhhunhihrghnghdrmhgvnecuvehluhhsthgv rhfuihiivgeptd X-ME-Proxy: <xmx:0rL8XGq_A1WqFQb2_U2ysGhN-HcGYdyms0X9gCUVaUVOpNM52wBF1A> <xmx:0rL8XLNAX0qMUof8oZ_unXauN2aKx8AO53E1CMvmjoFFiwnx0V16zA> <xmx:0rL8XIrnz8TARdr48kZXeRU_HIrzbkqQsfSSDJAUU6-BxdLoAWL4bA> <xmx:0rL8XHImy-bi6r5gk0263PjhZLVSRvWf4Sr8otsKKbf79x5Z9GcRAw> Received: from Chunyangs-MacBook-Air.local (unknown [117.93.206.133]) by mail.messagingengine.com (Postfix) with ESMTPA id 2563F380085 for <bug-gnu-emacs@HIDDEN>; Sun, 9 Jun 2019 03:18:40 -0400 (EDT) From: Xu Chunyang <mail@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 26.2; Unable to "trigger another backtrace" User-Agent: Emacs/26.2 Date: Sun, 09 Jun 2019 15:18:37 +0800 Message-ID: <m21s03z0oi.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 64.147.123.21 X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.6 (--) (info "(elisp) Using Debugger") says > When the debugger has been entered, the =E2=80=98debug-on-error=E2=80=99 = variable is > temporarily set according to =E2=80=98eval-expression-debug-on-error=E2= =80=99. If the > latter variable is non-=E2=80=98nil=E2=80=99, =E2=80=98debug-on-error=E2= =80=99 will temporarily be set > to =E2=80=98t=E2=80=99. This means that any further errors that occur wh= ile doing a > debugging session will (by default) trigger another backtrace. Text before "This means.." is correct, but the conclusion seems incorrect, to reproduce - emacs -Q - M-: (/ 1 0) ;; enter the debugger - M-: (/ 2 0) ;; just message the error, no another backtrace Am I misunderstanding "trigger another backtrace"?
Xu Chunyang <mail@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#36145
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.