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: Thu, 17 Aug 2023 16:16:19 +0200 Message-ID: <20230817161619+0200.191251-stepnem@smrk.net> References: <20230813095429+0200.5928-stepnem@smrk.net> <20230813095429+0200.5928-stepnem@smrk.net> <20230813190826+0200.765169-stepnem@smrk.net> <83v8de581n.fsf@gnu.org> <83h6ox6bnk.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="5580"; 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, npostavs@users.sourceforge.net To: Eli Zaretskii , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 17 16:17:28 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 1qWdoW-0001BY-8c for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Aug 2023 16:17:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWdoE-0001rI-JG; Thu, 17 Aug 2023 10:17:12 -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 1qWdo7-0001qn-Lt for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2023 10:17:03 -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 1qWdo5-0001J7-UH for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2023 10:17:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qWdo5-0007mn-KC for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2023 10:17:01 -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: Thu, 17 Aug 2023 14:17: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.169228179229888 (code B ref 65267); Thu, 17 Aug 2023 14:17:01 +0000 Original-Received: (at 65267) by debbugs.gnu.org; 17 Aug 2023 14:16:32 +0000 Original-Received: from localhost ([127.0.0.1]:45283 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWdnb-0007lz-Na for submit@debbugs.gnu.org; Thu, 17 Aug 2023 10:16:32 -0400 Original-Received: from mail.smrk.net ([45.76.87.244]:4673) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWdnX-0007lh-DP for 65267@debbugs.gnu.org; Thu, 17 Aug 2023 10:16:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smrk.net; s=20221002; t=1692281780; 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=1zSwIv+vUt/W0Pu+tuCoFg2bZiUfWD4qC3CZA7nW4cw=; b=RKRWQ+CC9pyLqDKEbCVUw00BtkrMm6N9MnVlEh25zP/GF8PTj3LrOz+Cl844Jdnytuw1VE v3qgIoMR7ZVIyUQASrDkrsTFgBQ3ODSa1cLWKTP54UOB49TkvA45okE1yS9aGgbqSqMWY0 TrI/pcpw9JL/ye1aBjS9pcYIcb3jAsV/mw3My5fD8rIBx53gGmePA7LdhEUm0x2+is7V6E BCY5R3srEfYPuMrcIwqUekWbB35M7av/tyP4w4m0RTVyBL6vIn75QJi9H6F921UXCR8utF F7d5OUkxR+kT6U5+KWcTcToBIDETGv+THropFV1JRv2OlWnGDHiw3QaKwM59vQ== Original-Received: from localhost ( [192.168.5.2]) by smrk (OpenSMTPD) with ESMTPSA id a5a5b220 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 17 Aug 2023 16:16:20 +0200 (CEST) In-Reply-To: <83h6ox6bnk.fsf@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:267669 Archived-At: On Thu, 17 Aug 2023 16:28:31 +0300 Eli Zaretskii wrote: >> From: Stefan Monnier >> Cc: stepnem@smrk.net, 65267@debbugs.gnu.org, npostavs@users.sourceforg= e.net >> Date: Thu, 17 Aug 2023 08:55:38 -0400 >>=20 >> > What about the minor changes below? They do seem to yield the >> > expected results in the original recipe. The idea is to detect the >> > situation where the init file _added_ to the value of >> > debug-ignored-errors, and re-add the additions after loading the init >> > file. >>=20 >> No objection from me (it's not great, but I don't think there's a great >> solution). > > Thanks. > > =C5=A0t=C4=9Bp=C3=A1n, would you mind testing the patch? If it works for= you, I will > install it. Your patch preserves additions (although it moves them to the end of the list, but that shouldn't matter for debug-ignored-errors), but doesn't preserve removals, e.g., if we change the reproducer from my original report to --8<-- initdir=3D$(mktemp -d) #echo "(add-to-list 'debug-ignored-errors 'my-error)" >"$initdir"/init.el echo "(setq debug-ignored-errors (delq 'end-of-file debug-ignored-errors))"= >"$initdir"/init.el emacs --debug-init --init-dir=3D"$initdir" \ --eval '(message "%S" debug-ignored-errors)' rm -rf "$initdir" --8<-- we end up with debug-ignored-errors containing `end-of-file' (together with the rest). Have you considered my humble suggestion of reverting to pre-bug#64163 state and simply removing end-of-file from the default value of debug-ignored-errors? --=20 =C5=A0t=C4=9Bp=C3=A1n