From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#64163: 29.0.92; Syntactic errors in early init when --debug-init is on Date: Tue, 20 Jun 2023 10:24:31 -0400 Message-ID: References: <878rcf20l0.fsf@whxvd.name> <83y1ke5kn7.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18254"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 64163@debbugs.gnu.org, Sebastian Miele To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 20 16:25:17 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 1qBcIG-0004Z0-QG for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Jun 2023 16:25:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBcI3-0007tS-29; Tue, 20 Jun 2023 10:25: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 1qBcI2-0007tA-DM for bug-gnu-emacs@gnu.org; Tue, 20 Jun 2023 10:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qBcI2-0003T6-2U for bug-gnu-emacs@gnu.org; Tue, 20 Jun 2023 10:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qBcI1-0001gd-TI for bug-gnu-emacs@gnu.org; Tue, 20 Jun 2023 10:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Jun 2023 14:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64163 X-GNU-PR-Package: emacs Original-Received: via spool by 64163-submit@debbugs.gnu.org id=B64163.16872710826447 (code B ref 64163); Tue, 20 Jun 2023 14:25:01 +0000 Original-Received: (at 64163) by debbugs.gnu.org; 20 Jun 2023 14:24:42 +0000 Original-Received: from localhost ([127.0.0.1]:59546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBcHi-0001fu-2U for submit@debbugs.gnu.org; Tue, 20 Jun 2023 10:24:42 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:52163) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBcHf-0001fg-Hp for 64163@debbugs.gnu.org; Tue, 20 Jun 2023 10:24:40 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 1DEDB8077C; Tue, 20 Jun 2023 10:24:34 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 01B268008E; Tue, 20 Jun 2023 10:24:33 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1687271073; bh=+fNvt4xeu6/c/V8Jw8AbWtRPw5p2QLu4qP2oo2jnfHI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=I7biXE89FwR9QIYxzinc6muUIZEYV2DUoTNMKNC0BBIhzXjIqmEYYvXasi3BkC/E3 QY4mwS/lVCBi/LGT2+i0qA9oA3A0ZCecMZfkmm6dofbu26K8LBw+GnXlDqCcH40NUM di14g3jrCGF/vQLoE170RvJEpFQA+AUk4X0xJPo9hslGDudfuGRDfuwzyVWWDjeHBo dyrW/pjwgdVbGe7cGgP3ZcYAaAlYK/nHKB0itvrj5aI6oEEVPo1b6OY6ajnAK9VzDo NKqvlzCgz463SRLXOp6+w1Tm5GnQjscQlSyx/9h7GT88lvthKfX+mdg7pOcj2arO+L S5rmgfbd6yi9Q== Original-Received: from pastel (unknown [45.72.207.87]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id CDA9212040D; Tue, 20 Jun 2023 10:24:32 -0400 (EDT) In-Reply-To: <83y1ke5kn7.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 20 Jun 2023 16:27:24 +0300") 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:263766 Archived-At: > First, the --init-directory=$DIR part is not relevant to the issue; > the same happens if you place such init files in your "normal" home > directory. [ IIUC he used it so we can reproduce his recipe without having to mess with our config. Thanks Sebastien for that effort :-) ] > More to the point, that error in early-init.el does not trigger > a backtrace because 'end-of-file' error is in the list that is the > value of debug-ignored-errors. So this problem is specific to that > particular kind of error in early-init.el. If you trigger some other > error, which is not in the list of ignored ones, you will see > a backtrace. > > IOW, this is the expected behavior. > > I wonder whether the patch below could be the solution to this. I think `debug-ignored-errors` should keep its default value when `--debug-init` is not used. IOW `--debug-init` should be the one that sets `debug-ignored-errors` to nil (only while loading the init files, tho). > Stefan, WDYT? Should we perhaps condition this binding by more > conditions, like only do this in interactive invocations or something? That would also be worth a try, yes. Stefan