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#60346: jka-compre.el.gz "Recursive load" Date: Tue, 27 Dec 2022 10:42:32 -0500 Message-ID: References: <87ilhxalsm.fsf@breatheoutbreathe.in> <83lemt0wnq.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="21773"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 60346@debbugs.gnu.org, Joseph Turner To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 27 16:43:24 2022 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 1pAC6t-0005V9-HJ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Dec 2022 16:43:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAC6a-0000ea-Co; Tue, 27 Dec 2022 10:43:04 -0500 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 1pAC6Z-0000eK-B6 for bug-gnu-emacs@gnu.org; Tue, 27 Dec 2022 10:43:03 -0500 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 1pAC6Z-0005r4-1P for bug-gnu-emacs@gnu.org; Tue, 27 Dec 2022 10:43:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pAC6Y-00052Z-Ak for bug-gnu-emacs@gnu.org; Tue, 27 Dec 2022 10:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Dec 2022 15:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60346 X-GNU-PR-Package: emacs Original-Received: via spool by 60346-submit@debbugs.gnu.org id=B60346.167215576219335 (code B ref 60346); Tue, 27 Dec 2022 15:43:02 +0000 Original-Received: (at 60346) by debbugs.gnu.org; 27 Dec 2022 15:42:42 +0000 Original-Received: from localhost ([127.0.0.1]:56348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAC6E-00051n-FS for submit@debbugs.gnu.org; Tue, 27 Dec 2022 10:42:42 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:41180) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAC6C-00051Z-7F for 60346@debbugs.gnu.org; Tue, 27 Dec 2022 10:42:40 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id BDEAA442F80; Tue, 27 Dec 2022 10:42:34 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 3BB8644102D; Tue, 27 Dec 2022 10:42:33 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1672155753; bh=SZcEiSMyagwo0uNVuDEGrRKQ2BCrJOZ52C7LQjln21E=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=AOEdfjkZShd+/C9J9qttNw5QJqkbGBwjfYc7jWUMhK5k0UX3J38QKseme+40B8Dgw Df7fqhtEbTLs6n3/V6JtByN56YL9Gw4WqQb0KQUPLKPiUxZUx/OGSpiX7zmBQELcjD y+ORCMvnKr2wqDAZ14VsC7xwlkDa5oZVDAmsCR8b9sL4aBywOeIJvgECBrfY/l7nuy rftOH6JY4ItEV7S2TRp65To4SHULm23aiJf3x9lFjroFrsYvczlO9qkjrB1YOeN25L KwTUHH8lApqWdZF1mPBAH6P1bAVVmPoByGAOKiMBZgSKxS1jHnlZpnR/ARi26RvoBe iHvChl/uffQsA== Original-Received: from pastel (unknown [45.72.200.228]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 1277D120903; Tue, 27 Dec 2022 10:42:33 -0500 (EST) In-Reply-To: <83lemt0wnq.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 27 Dec 2022 16:05:29 +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:251958 Archived-At: >> I wanted to ignore byte-compiled files because edebug was refusing to >> step into byte-compiled functions. Ignoring byte-compiled files is definitely not the best solution to your problem. >> I ran the following: >> >> emacs -Q --eval="(setq load-suffixes '(\".el\"))" >> >> This broke basic functionality, throwing a "Recursive load" error. For >> example, `M-x find-file ~/.emacs.d/init.el` gives: >> >> VC refresh error: (error "Recursive load" >> "/gnu/store/x8nykb09aqmp2j6k74dpgc4jvbk8c2bl-emacs-next-29.0.50-3.22e8a77/share/emacs/29.0.50/lisp/jka-compr.el.gz" Loading a compressed file can be done only after we load `jka-compr` (since that's the package which implement this feature). So clearly, there's a bootstrap problem if that package is itself compressed. Distributions which compress their `.el` files get away with it because `jka-compr.elc` isn't compressed, but if you remove `.elc` from `load-suffixes` then you reintroduce the circularity. Same thing if you move it to after `.el`. Maybe `gunzip .../jka-compr.el.gz` is all it takes to make it work, tho. > I'm not sure we want to support this kind of changes in the order or > contents of load-suffixes. It might work when `.el` files aren't compressed. > It sounds to me like the order is there for as reason, and no part of > Emacs expects these lists to be reordered, let alone have some > extensions removed from them. I think the only valid changes are > adding extensions to the end. I'm not sure what I'd consider valid or not, but the present use-case isn't a good justification to go and try and make that use work. Stefan