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#65267: 30.0.50; modifying debug-ignored-errors during startup with --debug-init is broken Date: Sun, 13 Aug 2023 19:32:46 +0300 Message-ID: <83wmxyc381.fsf@gnu.org> References: <20230813095429+0200.5928-stepnem@smrk.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6269"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65267@debbugs.gnu.org, stepnem@smrk.net To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 13 18:33: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 1qVE1q-0001RU-3K for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Aug 2023 18:33:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qVE1X-0003bX-LW; Sun, 13 Aug 2023 12:33:03 -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 1qVE1W-0003bP-B2 for bug-gnu-emacs@gnu.org; Sun, 13 Aug 2023 12:33:02 -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 1qVE1W-0001VP-3A for bug-gnu-emacs@gnu.org; Sun, 13 Aug 2023 12:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qVE1V-0006FO-LE for bug-gnu-emacs@gnu.org; Sun, 13 Aug 2023 12:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Aug 2023 16:33:01 +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.169194437624002 (code B ref 65267); Sun, 13 Aug 2023 16:33:01 +0000 Original-Received: (at 65267) by debbugs.gnu.org; 13 Aug 2023 16:32:56 +0000 Original-Received: from localhost ([127.0.0.1]:60152 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qVE1Q-0006F4-8Z for submit@debbugs.gnu.org; Sun, 13 Aug 2023 12:32:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40968) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qVE1O-0006Es-AF for 65267@debbugs.gnu.org; Sun, 13 Aug 2023 12:32:55 -0400 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 1qVE1I-0001Uf-4l; Sun, 13 Aug 2023 12:32:48 -0400 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=q8vbfrASmIMgx33LMXxoZgoiiQCz5nTzjdMSVC3mFRI=; b=QOEplzqVvg/o FcFs1pjqsRcnqDNQmr385Sow7Psz8bc1SZIwEWO6xm0K7kt+pzCpTbs3HnZ/LzC21aSLed16g06aq vYi8KUKsTMjl0XHenlRrrwl3J/ukECQ7BMjESIhm6OmvmEnR9MzgkNhOGUG+ABeZS9jmSkCxK+LOs 9H3U6m2eeotQSRIYuBybXLzdbltXINnzcFSOzDphC5ZkqekeLO3dglsOyUbkRgpeujleNSfTLgdDF Goi2KVbWl2wJI+2gyVE34VWS9qW1ei8a3U+tarNUygO/0D2UdaimlKPD73G1TBqyJjU2eQ3tNin+2 cor/joPDlnWDnMttgtwagQ==; In-Reply-To: (bug-gnu-emacs@gnu.org) 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:267373 Archived-At: > Cc: 65267@debbugs.gnu.org > Date: Sun, 13 Aug 2023 12:19:31 -0400 > From: Stefan Monnier via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Yeah, it's wrong, but I'm not sure how to fix it: > `--debug-init` needs to change the value of `debug-ignored-errors` while > `init.el` is executed, but it's not clear how to "revert" to "the value > it would have if we had not changed it" once we're finished processing > `init.el`. > > Maybe we should introduce a new `inhibit-debug-ignored-errors` which we > could let-bind while loading `init.el` without having to modify > `debug-ignored-errors` itself? We could document that modifying debug-ignored-errors only works reliably if done from after-init-hook. WDYT?