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: Thu, 17 Aug 2023 17:31:00 +0300 Message-ID: <83bkf568rf.fsf@gnu.org> 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> <20230817161619+0200.191251-stepnem@smrk.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6495"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65267@debbugs.gnu.org, monnier@iro.umontreal.ca, npostavs@users.sourceforge.net To: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 17 16:32:36 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 1qWe3A-0001Vv-Aa for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Aug 2023 16:32:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWe2m-0003o0-CO; Thu, 17 Aug 2023 10:32: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 1qWe2c-0003fA-Bh for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2023 10:32:08 -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 1qWe2c-0000lc-3K for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2023 10:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qWe2b-0008Bw-LE for bug-gnu-emacs@gnu.org; Thu, 17 Aug 2023 10:32: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: Thu, 17 Aug 2023 14:32: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.169228266431397 (code B ref 65267); Thu, 17 Aug 2023 14:32:01 +0000 Original-Received: (at 65267) by debbugs.gnu.org; 17 Aug 2023 14:31:04 +0000 Original-Received: from localhost ([127.0.0.1]:45300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWe1g-0008AL-1x for submit@debbugs.gnu.org; Thu, 17 Aug 2023 10:31:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53720) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWe1b-00089g-2d for 65267@debbugs.gnu.org; Thu, 17 Aug 2023 10:31:02 -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 1qWe1U-0007zB-LZ; Thu, 17 Aug 2023 10:30:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Rfxl4ksctHJVS/MKi+oP18YGzUPuOBO2LXZHkN4NwPg=; b=mUUAJkYQpcVYSIt0ap5w K4Bq36PvED7+SisuUha/XtiY0tcwgP2ardZ9UGUcJwnwcxO249QYP0hhH4GZ3Tc4P7uXJY9Kx1VGh GUPkNaJtveBag+ECkBMG91MoJawZCtdwT6K1C+6XjPaLTFy6o7dsLxiK78TzCG4lGFq/CREzwF3C3 adOmFzs/hqC7mhEbCyJjLsyZLBMlYUuKRE2G8UMYROTGI+eauQLbCbkHw5xTg1YkhyvfKO99dxFJC 6e4VxdFk0IiJah2Ry2dVyZ24t8zlSfIOtlqiLuiy5V+kTMSj4JFPtiYyKQ9sdEoLYriOqF9R/yrdq 2tgfD6Wm9WDgGw==; In-Reply-To: <20230817161619+0200.191251-stepnem@smrk.net> (message from =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= on Thu, 17 Aug 2023 16:16:19 +0200) 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:267671 Archived-At: > From: Štěpán Němec > Cc: 65267@debbugs.gnu.org, npostavs@users.sourceforge.net > Date: Thu, 17 Aug 2023 16:16:19 +0200 > > 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.sourceforge.net > >> Date: Thu, 17 Aug 2023 08:55:38 -0400 > >> > >> > 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. > >> > >> No objection from me (it's not great, but I don't think there's a great > >> solution). > > > > Thanks. > > > > Štěpán, 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 If someone want to remove from the list, and use --debug-init on top of that, they will need to replace the value instead. If that's the only downside of the patch I proposed, I think people will be able to live with it. > 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? Yes. This cannot fly, since we had end-of-file there for a long time (I see it in Emacs 20).