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:30:29 +0200 Message-ID: <83leame1d6.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="7417"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67196@debbugs.gnu.org, acm@muc.de, 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 08:31:23 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 1r6n8N-0001nD-83 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Nov 2023 08:31:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r6n82-0001fI-Tk; Sat, 25 Nov 2023 02:31:02 -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 1r6n7z-0001f4-33 for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2023 02:31:00 -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 1r6n7x-0002QW-Vn for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2023 02:30:58 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r6n82-0006IO-Fq for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2023 02:31:02 -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 07:31: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.170089745524188 (code B ref 67196); Sat, 25 Nov 2023 07:31:02 +0000 Original-Received: (at 67196) by debbugs.gnu.org; 25 Nov 2023 07:30:55 +0000 Original-Received: from localhost ([127.0.0.1]:37688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r6n7v-0006I4-A3 for submit@debbugs.gnu.org; Sat, 25 Nov 2023 02:30:55 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r6n7q-0006Ho-AT for 67196@debbugs.gnu.org; Sat, 25 Nov 2023 02:30:53 -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 1r6n7e-0002Pw-Jo; Sat, 25 Nov 2023 02:30:38 -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=ZqzHeFmx5ZxeBptui4mUbbAqG+yEc8iTuNFt3I8RLYA=; b=isabgfExPoo0 eI6T2oZBFAY1xnPNWc+HrZrL32Uwm1doaZJN2XX/It/4xQ9vlcwVUGzRfhwI2yWcia3mM1/U47kJ8 QTwen7F2vi6/oPjxiLxjCr32M3YKT7v+k7OggyCgBj6KZ1L97Ta6nDMNfOC0nx20OKzy6MSWHFtXR juEI/SL+b2xLurIjfzO6cXANAnIFl3w0ZF4L51cy2FKBM2LzjeLpVd4ASz14KVNisQ5sseHVjsAP6 6TNdnK2P/Z2jUv4ZdpdH+E9NXzwKb0Lt6mhM5v6UgrgMgk7aWdBQqm0Oy+OnQWbyxF/d3bscRAekR VQf7fZwRd7B0rBm+cJ2zAg==; In-Reply-To: (message from Alan Mackenzie on Fri, 24 Nov 2023 20:54:45 +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:274916 Archived-At: > Date: Fri, 24 Nov 2023 20:54:45 +0000 > Cc: 67196@debbugs.gnu.org, acm@muc.de > From: Alan Mackenzie > > > > Non-nil means enter debugger on an error in a call from `eval-expression'. > > > Does not apply to errors handled by `condition-case' or those > > > matched by `debug-ignored-errors'. > > > A nil value for this variable will not prevent an entry to > > > the debugger caused by other variables such as `debug-on-error'. > > > First, the last two sentences above should be transposed, as the > > second one is not related to the 1st one, but the 3rd one is. > > Done. > > > And second, please try to reword so that the text is less complicated > > and easier to understand. > > I'm perhaps a bit too close to it. Apart from the first line (for which > too much information needs squashing in), I can't really see much scope > for improvement. Here: (defcustom eval-expression-debug-on-error t "If non-nil, enter debugger if `eval-expression' signals an error. A non-nil value means set `debug-on-error' to that value when calling `eval-expression'; this will enter a debugger if `eval-expression' signals an error. A nil value means don't change the value of `debug-on-error' when calling `eval-expression'. The value can also be a list, with the same meaning as for `debug-on-error'. Like `debug-on-error', this variable does not apply to errors handled by `condition-case' or those matched by `debug-ignored-errors'." > + DEFVAR_LISP ("debug-from--eval-expression", Vdebug_from__eval_expression, > + doc: /* Non-nil means enter debugger if an error is signaled. > +This only applies in forms called by `eval-expression'. This variable > +has the same semantics as `debug-on-error'. It is an internal variable > +only. */); The doc string should be just /* Internal use only, used by `eval-expression'. */