From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#57627: 29.0.50; [native-compilation] cl-loaddefs.el recompiled on startup Date: Tue, 15 Oct 2024 15:20:08 -0400 Message-ID: References: <1ec93fc2a0eaa42f9d6464984867031f@webmail.orcon.net.nz> <86tteihdxy.fsf@gnu.org> <26e8c6a5ade1c40d841f27e85270b07c@webmail.orcon.net.nz> <86ikug6twn.fsf@gnu.org> <865xpxy3c2.fsf@gnu.org> <3ffef4080b1728e6f1e8677c10f9c26c@webmail.orcon.net.nz> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30056"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 57627@debbugs.gnu.org, arash@gnu.org, Eli Zaretskii , larsi@gnus.org, monnier@iro.umontreal.ca To: Phil Sainty Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 15 21:21:02 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 1t0n6M-0007YP-Co for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Oct 2024 21:21:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t0n65-0005Xa-Tp; Tue, 15 Oct 2024 15:20:45 -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 1t0n64-0005XD-7B for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2024 15:20:44 -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 1t0n63-0001mE-UG for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2024 15:20:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=n0Fae5WzfhxXlgC+OHaZcE0OPjuMb6GybybUzOVw518=; b=uKgSLdZUOhdGyYL70IwoVMDR6ZH+cVRqfetUkNITGJ4899iA6CAgy2JPn7nK3JOWPr8AznDOIj5iN3KeF4COm+I3Zu4TBi0bFOzf9nz+I4eGbr6BrM0VxCgXR+qJhjIMargxH+jPGNy4c5D5RhW28GJJdlyhjVX0+xDw2Wb9yNG3/lewY7fxz4V4CtrPgt4Kc4VkCwk3FYumL8aEqolLiyLbPImTzlY6ZTFbSTOVFw6Csn+GJ1nKWxqn4nx/fnnMNDxDBi5xpTdxKhLdLvkDBY9eu8sWVfKK8rIcdWpHSmoh1rdgPlbCff+B8bfGiZlqGix/1B35sPLPnyFEvboE4w==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t0n6M-0004sX-C9 for bug-gnu-emacs@gnu.org; Tue, 15 Oct 2024 15:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Oct 2024 19:21: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.172902004018700 (code B ref 57627); Tue, 15 Oct 2024 19:21:02 +0000 Original-Received: (at 57627) by debbugs.gnu.org; 15 Oct 2024 19:20:40 +0000 Original-Received: from localhost ([127.0.0.1]:57513 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0n5z-0004rY-Uy for submit@debbugs.gnu.org; Tue, 15 Oct 2024 15:20:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36508) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0n5y-0004nU-D7 for 57627@debbugs.gnu.org; Tue, 15 Oct 2024 15:20:39 -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 1t0n5X-0001gT-JX; Tue, 15 Oct 2024 15:20:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=n0Fae5WzfhxXlgC+OHaZcE0OPjuMb6GybybUzOVw518=; b=lJ5ti47qSK0++hvP1ZbL Ux2UXfsztvxWNlRA5chO6fjAs+dxGBPxn+Pd7L0v2D098zfwTxb2owmz+gB/lQxIANlbzDMeTW/Bj DlTA2rJfqK/sL2u8OVH2f11q/8JJ8hGd2uEzroQSwojLcGMVIvZGZqaMcWKvNCoPOl23bEQhZH4Oj Y6akX/3CcGnrB90QeQ2PyOP6uWfTdDXvcBE0J0KA6XZIYrL2IqoB+CKyKjbypG7Vwh1j5EQt6Qf7c SwyR7YjN8K/CA5xAYJ6UKWCc07mpAJE7XxcQyWkT4ZLH2OgqBulEn6wb1BHlb/V5+ehgDw7gV9B6d H8G14p1HUIFaPw==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1t0n5U-00062a-Lq; Tue, 15 Oct 2024 15:20:08 -0400 In-Reply-To: <3ffef4080b1728e6f1e8677c10f9c26c@webmail.orcon.net.nz> (Phil Sainty's message of "Wed, 16 Oct 2024 02:01:56 +1300") 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:293641 Archived-At: Phil Sainty writes: > 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. Ops sorry, I think I wanted to write (one-or-more (not eos)) > 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)))) I like this approach. > As a by-product, that will also support filenames with version > strings attached. Like? > (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.) AFAIK we only support .gz Thanks Andrea