From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.bugs Subject: bug#57627: 29.0.50; [native-compilation] cl-loaddefs.el recompiled on startup Date: Wed, 16 Oct 2024 02:01:56 +1300 Message-ID: <3ffef4080b1728e6f1e8677c10f9c26c@webmail.orcon.net.nz> References: <1ec93fc2a0eaa42f9d6464984867031f@webmail.orcon.net.nz> <86tteihdxy.fsf@gnu.org> <26e8c6a5ade1c40d841f27e85270b07c@webmail.orcon.net.nz> <86ikug6twn.fsf@gnu.org> <865xpxy3c2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23294"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Orcon Webmail Cc: 57627@debbugs.gnu.org, arash@gnu.org, Eli Zaretskii , larsi@gnus.org, monnier@iro.umontreal.ca To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 15 15:03:04 2024 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 1t0hCY-0005lq-OF for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Oct 2024 15:03:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t0hCI-000711-5j; Tue, 15 Oct 2024 09:02:46 -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 1t0hCG-00070o-Va for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2024 09:02:45 -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 1t0hCG-0007Tq-My for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2024 09:02:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:MIME-Version:To:Subject; bh=AvraumKBkkILjR2mf+FTuuPwpBW9nyUNDc5VJN/RC7s=; b=nta+qixahKk0B4wjgNI4sNXIY0p+u4yMzEllSHqg5BK4dX30FhIrWG3ChCXRH/8qTOf54eUa6ygkeM2bE8qdAcOotTbGbfW12MgM5NWGVXoZYS5k8Ift5sL1CoLaqjvFAJyFLxCht4KU8BlDtETDUTR1eCp/eUR0aku9uj5uzPN3PGFT7TsRpwT1399fV2Oyi1ldBoJcl2SAWjjj3JIDIfu0dN72GiXTWLCS5sxgNe6P7dwAE3MK5/1Spk5dwXJhbnUS6ngKlGnRa/DWsnlk5z7WtKK0C5npFnvLy0tcHxenRFdCRr6TLgQLlguCvzFajElCP/IRuHIiQnnFF8r3UQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t0hCY-0001Ye-BM for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2024 09:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Oct 2024 13:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57627 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 57627-submit@debbugs.gnu.org id=B57627.17289973435927 (code B ref 57627); Tue, 15 Oct 2024 13:03:02 +0000 Original-Received: (at 57627) by debbugs.gnu.org; 15 Oct 2024 13:02:23 +0000 Original-Received: from localhost ([127.0.0.1]:54474 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0hBu-0001XW-QZ for submit@debbugs.gnu.org; Tue, 15 Oct 2024 09:02:23 -0400 Original-Received: from smtp-3.orcon.net.nz ([60.234.4.44]:38155) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0hBs-0001XK-CJ for 57627@debbugs.gnu.org; Tue, 15 Oct 2024 09:02:21 -0400 Original-Received: from [10.253.37.70] (port=7155 helo=webmail.orcon.net.nz) by smtp-3.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1t0hBU-00067r-Lt; Wed, 16 Oct 2024 02:01:56 +1300 Original-Received: from ip-116-251-164-139.as55850.net ([116.251.164.139]) via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Wed, 16 Oct 2024 02:01:56 +1300 In-Reply-To: X-Sender: psainty@orcon.net.nz X-GeoIP: -- X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- 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:293617 Archived-At: On 2024-10-14 11:12, Andrea Corallo wrote: > + (let ((file (save-match-data > + (if (string-match (rx (group-n 1 (one-or-more nonl) > ".el") ".gz" eol) > + file) > + (match-string 1 file) > + file)))) Newlines are valid in filenames, though. Maybe start with the file name extension function? (when (equal (file-name-extension file) "gz") (let ((filenogz (file-name-sans-extension file))) (when (string-match-p "\\.el\\'" filenogz) (setq file filenogz)))) As a by-product, that will also support filenames with version strings attached. (Assuming that's a good thing here.) (Also: Maybe not a practical issue here, but if Emacs supports loading compressed elisp files using any compression format besides .gz then maybe this should be more general.) -Phil