GNU bug report logs - #57627
29.0.50; [native-compilation] cl-loaddefs.el recompiled on startup

Previous Next

Package: emacs;

Reported by: German Pacenza <germanp82 <at> hotmail.com>

Date: Tue, 6 Sep 2022 14:55:04 UTC

Severity: normal

Tags: moreinfo

Found in version 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Phil Sainty <psainty <at> orcon.net.nz>
To: Andrea Corallo <acorallo <at> gnu.org>
Cc: 57627 <at> debbugs.gnu.org, arash <at> gnu.org, Eli Zaretskii <eliz <at> gnu.org>, larsi <at> gnus.org, monnier <at> iro.umontreal.ca
Subject: bug#57627: 29.0.50; [native-compilation] cl-loaddefs.el recompiled on startup
Date: Wed, 16 Oct 2024 02:01:56 +1300
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





This bug report was last modified 222 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.