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: Andrea Corallo <acorallo <at> gnu.org>
To: Phil Sainty <psainty <at> orcon.net.nz>
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: Tue, 15 Oct 2024 15:20:08 -0400
Phil Sainty <psainty <at> orcon.net.nz> 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




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.