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:24:45 +0200 Message-ID: <20230813122445+0200.980157-stepnem@smrk.net> References: <20230813095429+0200.5928-stepnem@smrk.net> <83cyzrclvt.fsf@gnu.org> <20230813120341+0200.42465-stepnem@smrk.net> <83bkfbckt3.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="30256"; 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:38 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 1qV9XO-0007gw-3L for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Aug 2023 13:45:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qV9X8-0000Bg-CX; Sun, 13 Aug 2023 07:45:23 -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-0000AV-GK 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 1qV9Wq-0004hP-3o for bug-gnu-emacs@gnu.org; Sun, 13 Aug 2023 07:45:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qV9Wq-0003UE-07 for bug-gnu-emacs@gnu.org; Sun, 13 Aug 2023 07:45:04 -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.169192708513319 (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]:58342 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qV9WX-0003Sf-0F for submit@debbugs.gnu.org; Sun, 13 Aug 2023 07:44:45 -0400 Original-Received: from mail.smrk.net ([2001:19f0:6c01:2788:5400:4ff:fe27:adaa]:42191) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qV8HE-0006rR-2p for 65267@debbugs.gnu.org; Sun, 13 Aug 2023 06:24:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smrk.net; s=20221002; t=1691922285; 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=47Tq/CNjKMUZYGXIeBjymm9SbRdXr5a87X+7rET8OFM=; b=RFwJeUVgW+f4k9cI9gT3B8KsgsHYvcZ1H2/fDwY2b3QYb5hsdo8LeNWX8sQE5pL2BK4KnV /lEGNPzlRPJ3WXXkxLmRWtZ1Nehv2vx0XUBl885JXqJH0QPljpmC62uc07hOlx98gWP31j we/aj3eYV45CHeXwZCY61d24FpGNPYzkDVhCX+57LPobQBbwZlEryVh915Yw2UyDMC3wnr W3+0lyKxAdElKGxuQu2cybMXiqnGuKRC2n/nl5v3frfGpWcUcKJrdnVg11kHf1AYqAR0k7 X/nPDSxSJta6LACgp14fZSOKhpZBnCp2ZcdatNEXnWXcsMZefOlN/KivoCEwNQ== Original-Received: from localhost ( [192.168.5.2]) by smrk (OpenSMTPD) with ESMTPSA id 692997fc (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 13 Aug 2023 12:24:45 +0200 (CEST) In-Reply-To: <83bkfbckt3.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:267358 Archived-At: On Sun, 13 Aug 2023 13:12:56 +0300 Eli Zaretskii wrote: >> From: =C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec >> Cc: 65267@debbugs.gnu.org, monnier@iro.umontreal.ca >> Date: Sun, 13 Aug 2023 12:03:41 +0200 >>=20 >> On Sun, 13 Aug 2023 12:49:42 +0300 >> Eli Zaretskii wrote: >>=20 >> > 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. >>=20 >> 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. > > You are not supposed to suppress errors during startup when you use > the --debug-init switch. You are supposed to resolve the errors one > by one, until no errors are left. (Resolving errors could include > catching them and ignoring them, e.g., with the likes of > ignore-errors.) That's what --debug-init is for, so leaving some > errors suppressed in that case makes no sense. Moreover, most users > don't even know that debug-ignored-errors exists and has a non-nil > value by default, so the effect is to hide some errors during startup > from those users -- and that is the anti-thesis of --debug-init. I fail to see how any of that pertains to the issue at hand. Just to be a bit more certain we understand each other: no errors occur during startup; I'm not talking about any kind of debugging scenario, or suppressing errors during startup. The bug I describe causes a perfectly cleanly started Emacs to end up with bogus debug-ignored-errors, possibly (even likely) without the user intentionally modifying any defaults, other than passing --debug-init to Emacs and loading (as part of initialization) a package that might add to debug-ignored-errors, both of which seem perfectly fine things to do to me (and had been working for years until the recent changes). >> 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). > > The above works perfectly okay as long as --debug-init is not used, > right? (If it doesn't, then this is not a problem with a recent > change that is supposed to affect only --debug-init.) Yes, I stated so in my report. --=20 =C5=A0t=C4=9Bp=C3=A1n