From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#67196: M-: uses a wrong value of debug-on-error when it is nil. Date: Sat, 25 Nov 2023 09:59:45 +0200 Message-ID: <83il5qe00e.fsf@gnu.org> References: <83a5rfq6i2.fsf@gnu.org> <83ttpbdm2f.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26320"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67196@debbugs.gnu.org, monnier@iro.umontreal.ca To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 25 09:01:20 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 1r6nbM-0006ic-4W for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Nov 2023 09:01:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r6nb0-0000hF-P1; Sat, 25 Nov 2023 03:00:58 -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 1r6naz-0000gx-8G for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2023 03:00:57 -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 1r6naz-0007it-05 for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2023 03:00:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r6nb3-0007AS-Lg for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2023 03:01:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Nov 2023 08:01:01 +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.170089920427395 (code B ref 67196); Sat, 25 Nov 2023 08:01:01 +0000 Original-Received: (at 67196) by debbugs.gnu.org; 25 Nov 2023 08:00:04 +0000 Original-Received: from localhost ([127.0.0.1]:37699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r6na7-00077m-Jz for submit@debbugs.gnu.org; Sat, 25 Nov 2023 03:00:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r6na3-00076k-Gf for 67196@debbugs.gnu.org; Sat, 25 Nov 2023 03:00:02 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r6nZs-0007KK-BB; Sat, 25 Nov 2023 02:59:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=dw94QZ2FWezg7UyhbgJ1UjBJwsdMcyTR2jDEuYn/vwg=; b=FAlIFF94VID6 01odFY5eTSJcn4gBWo6sAFNe9So5CJUNtWRp45IfTIQrPCv5u7XyAmjJXVRIN5a7fybazzeg6sA9v DzZByJvUPLGqKOUs9/kuVQfMQUNEMII7vmV2pQJfXz0sRmL1R75Zdr/WWeRp1np7PrElLMnMxpmVz oV2DvStxgQSYsEepwjWeaVenRNTQLhYnUvioCyPiEK3dC6vEU2cWzFgnRs9VjfSi1qauI23O+cMe1 NNM52hgvJzAvV6gNesk4nT5ALo6aBiNKKhdvKi0XpeHQqhWk8o7TSehmvNcGSUF6bza0baQLFJCPY GU/vszHKe7G2y2Bl/7/ktw==; In-Reply-To: (message from Alan Mackenzie on Fri, 24 Nov 2023 22:21:27 +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:274918 Archived-At: > Date: Fri, 24 Nov 2023 22:21:27 +0000 > Cc: Eli Zaretskii , 67196@debbugs.gnu.org, acm@muc.de > From: Alan Mackenzie > > > So you kicked the can a bit further down the road. > > The next bug report will be that `M-: debug-from--eval-expression` does > > not return the expected value. > > Not at all. debug-from--eval-expression is a purely internal variable, > unlike debug-on-error which is intended for user use. It is bound in > exactly one place, and tested in exactly one place. > > Anybody reporting such a "bug" would legitimately get the reply "not a > bug". How about not exposing the internal variable to Lisp at all? > For what it's worth, I lost about 10 hours of time trying to debug > a situation where I wasn't getting a backtrace, despite debug-on-error > being t. The problem was that d-o-e wasn't t at all, it was nil. M-: > had been lying. You never described that situation, AFAICT. I think you should, so that we could assess how grave the problem is, which is an important part of deciding whether the solution you propose is useful. I don't understand how could you NOT get a backtrace when debug-on-error is non-nil.