From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= Newsgroups: gmane.emacs.bugs Subject: bug#65267: 30.0.50; modifying debug-ignored-errors during startup with --debug-init is broken Date: Sun, 13 Aug 2023 12:03:41 +0200 Message-ID: <20230813120341+0200.42465-stepnem@smrk.net> References: <20230813095429+0200.5928-stepnem@smrk.net> <83cyzrclvt.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31545"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Notmuch/0.37 (https://notmuchmail.org) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 65267@debbugs.gnu.org, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 13 13:45:55 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 1qV9Xf-00080p-AB for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Aug 2023 13:45:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qV9XB-0000CC-Ey; Sun, 13 Aug 2023 07:45:25 -0400 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 1qV9Wq-0000AU-2y for bug-gnu-emacs@gnu.org; Sun, 13 Aug 2023 07:45:06 -0400 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 1qV9Wp-0004h9-Kl for bug-gnu-emacs@gnu.org; Sun, 13 Aug 2023 07:45:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qV9Wp-0003U4-Hq for bug-gnu-emacs@gnu.org; Sun, 13 Aug 2023 07:45:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Aug 2023 11:45:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65267 X-GNU-PR-Package: emacs Original-Received: via spool by 65267-submit@debbugs.gnu.org id=B65267.169192708513312 (code B ref 65267); Sun, 13 Aug 2023 11:45:03 +0000 Original-Received: (at 65267) by debbugs.gnu.org; 13 Aug 2023 11:44:45 +0000 Original-Received: from localhost ([127.0.0.1]:58340 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qV9WW-0003Sc-4J for submit@debbugs.gnu.org; Sun, 13 Aug 2023 07:44:44 -0400 Original-Received: from mail.smrk.net ([2001:19f0:6c01:2788:5400:4ff:fe27:adaa]:11034) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qV7wq-0006Fu-2f for 65267@debbugs.gnu.org; Sun, 13 Aug 2023 06:03:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smrk.net; s=20221002; t=1691921022; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FYtRLvqoy0Y6oaLJ4NaMh9z5NeY7lnO/E5Y1iUBCRD0=; b=lqG/W3e+vAWGmU9lcRat8ym1Cd8wjDoGWw2UT3qNc9fC5Z2EHvCfAojW5rkfmWWpThCjgz JEOqJ89r3TDN63ddl3A9sDbpDWDlYpwnpknGQULIdCmTng5vdrqA1BBFMYOYWtTZih9yfE ts1slI2nv8LPstmm74acaGJu76guTGb+g8A5ZWtFqkyH7Um3ZPegTcEiWvFXGu7LfoOzeR k2yZ6eal5uJwyR00N6Hv/dTOK+CDHpoYrZB4r10KK6u0xCjM8rrBfFBKXZhVkaEVoXYJR2 bDfORpy2NNajCJbvdpl1B0y9E81sgBgAaElEZdFYPBoHb7QTPHdjhWmMaqhgIQ== Original-Received: from localhost ( [192.168.5.2]) by smrk (OpenSMTPD) with ESMTPSA id c0119bc1 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 13 Aug 2023 12:03:41 +0200 (CEST) In-Reply-To: <83cyzrclvt.fsf@gnu.org> X-Mailman-Approved-At: Sun, 13 Aug 2023 07:44:42 -0400 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:267359 Archived-At: On Sun, 13 Aug 2023 12:49:42 +0300 Eli Zaretskii wrote: >> Cc: Stefan Monnier >> From: =C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec >> >> Date: Sun, 13 Aug 2023 09:54:29 +0200 >>=20 >>=20 >> sh(1) reproduction recipe: >>=20 >> --8<-- >> initdir=3D$(mktemp -d) >>=20 >> echo "(add-to-list 'debug-ignored-errors 'my-error)" >"$initdir"/init.el >> emacs --debug-init --init-dir=3D"$initdir" \ >> --eval '(message "%S" debug-ignored-errors)' >>=20 >> rm -rf "$initdir" >> --8<-- >>=20 >> In the emacs thus started, the value of `debug-ignored-errors' is >> "(my-error startup--witness)" instead of `my-error' added to >> the default ignored error symbol list. > > I believe this is a feature: Here's hoping it isn't. > when the user says --debug-init, they need to be shown all the errors > raised during startup; hiding some of the errors was a misfeature in > previous versions of Emacs, now fixed. That would seem OK to me. The problem is that, as it is now, this breaks normal Emacs usage of anyone who starts with --debug-init and happens to modify `debug-ignored-errors' as part of their initialization. Note that it might not even be user-intentional/explicit modification, e.g., I noticed the problem because I load yasnippet from my init file, and yasnippet adds a custom regexp to debug-ignored-errors; so now I end up with bogus debug-ignored-errors value, which is further aggravated by the fact that I normally run with debug-on-errors set, so, for example, I now end up in the debugger whenever I press C-n at the end of buffer (until I manually restore debug-ignored-errors to a sane value). --=20 =C5=A0t=C4=9Bp=C3=A1n