From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#67196: M-: uses a wrong value of debug-on-error when it is nil. Date: Sun, 19 Nov 2023 12:19:49 -0500 Message-ID: References: <83a5rfq6i2.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24112"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 67196@debbugs.gnu.org, Eli Zaretskii To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 19 18:21:27 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r4lU7-00065a-7Y for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Nov 2023 18:21:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r4lTm-0003Y2-Kc; Sun, 19 Nov 2023 12:21:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r4lTh-0003Xc-3E for bug-gnu-emacs@gnu.org; Sun, 19 Nov 2023 12:21:01 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r4lTg-00062p-Rm for bug-gnu-emacs@gnu.org; Sun, 19 Nov 2023 12:21:00 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r4lTi-0004Ef-Bj for bug-gnu-emacs@gnu.org; Sun, 19 Nov 2023 12:21:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Nov 2023 17:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67196 X-GNU-PR-Package: emacs Original-Received: via spool by 67196-submit@debbugs.gnu.org id=B67196.170041440316204 (code B ref 67196); Sun, 19 Nov 2023 17:21:02 +0000 Original-Received: (at 67196) by debbugs.gnu.org; 19 Nov 2023 17:20:03 +0000 Original-Received: from localhost ([127.0.0.1]:52019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r4lSk-0004DG-SR for submit@debbugs.gnu.org; Sun, 19 Nov 2023 12:20:03 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:2726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r4lSg-0004Cf-JN for 67196@debbugs.gnu.org; Sun, 19 Nov 2023 12:20:02 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 98DE88076C; Sun, 19 Nov 2023 12:19:51 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1700414390; bh=ucPeXfSj5FEP+jnofUd43Gv82WpJ7KtXn+fDCZua4zQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=TY206xjC01/obu93B5erU56Q6CxfoNGBdfDXhRBfBmvUf4n1CgQl0LCDkRUJpognL EXF5R40e/KcCjDwImM0xYjICgOG5Dsy9pQn+rVv8PQievpmMIy0Fux88phgiF1VoQb +LocFBJkg6wO8yscee6km5Ukbr67WDuNTVCTrzs2A5rpTyTPUX78WbZ2UO5F6Fggm7 fP/h0uXFCtHVPNmxv6LFy+siZ/7j+IYapAeh0+/NPxrkb97HyvCqoyzLDA9pYmI+XE rDBq5ox4T6cUBwMcIYOeAI6mTyBBVrkKjYsNlrwlTbSa82JLDBgX+D6PuofeDZjjBL M/+CVVN7z6IgA== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id C4D9D8024B; Sun, 19 Nov 2023 12:19:50 -0500 (EST) Original-Received: from pastel (unknown [45.72.227.120]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9A1661203EF; Sun, 19 Nov 2023 12:19:50 -0500 (EST) In-Reply-To: (Alan Mackenzie's message of "Wed, 15 Nov 2023 17:55:18 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:274623 Archived-At: > Thinking about it more clearly, we're using one variable, debug-on-error, > for two conflicting purposes: > (i) The calling mechanism of execute-extended-command, including the > invocation of the debugger, should an error be signalled. > (ii) Use in the form to be evaluated, where the variable's value outside > of execute-extended-command should endure. Yes, there's a conflicting need here: we want to control the way `eval` works "from the outside", i.e. we want the `debug-on-error` to apply to the evaluator but not to the code being evaluated. But `eval` doesn't distinguish between the context of the evaluator and the context of the code being evaluated because all ELisp code uses the same evaluator. I can't think of any way to split the variable into two to solve the problem. Instead it gives me the impression we're trying some impossible feat like watching oneself sleep. Stefan