From: Andrea Corallo <acorallo@gnu.org>
To: Phil Sainty <psainty@orcon.net.nz>
Cc: 57627@debbugs.gnu.org, arash@gnu.org,
Eli Zaretskii <eliz@gnu.org>,
larsi@gnus.org, monnier@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 [thread overview]
Message-ID: <yp1cyk1uqaf.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <3ffef4080b1728e6f1e8677c10f9c26c@webmail.orcon.net.nz> (Phil Sainty's message of "Wed, 16 Oct 2024 02:01:56 +1300")
Phil Sainty <psainty@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
next prev parent reply other threads:[~2024-10-15 19:20 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-06 11:38 bug#57627: 29.0.50; [native-compilation] cl-loaddefs.el recompiled on startup German Pacenza
2022-09-06 15:02 ` Lars Ingebrigtsen
2022-09-06 15:46 ` German Pacenza
2022-09-06 15:51 ` Lars Ingebrigtsen
2022-09-06 16:33 ` Andrea Corallo
2022-09-06 16:41 ` Eli Zaretskii
2022-09-06 19:23 ` Andrea Corallo
2022-09-06 20:40 ` Lars Ingebrigtsen
2022-09-07 2:33 ` Eli Zaretskii
2022-09-07 12:47 ` Lars Ingebrigtsen
2022-09-07 13:01 ` German Pacenza
2022-09-07 13:06 ` Lars Ingebrigtsen
2022-09-07 13:41 ` Lars Ingebrigtsen
2022-09-07 13:08 ` Eli Zaretskii
2022-09-07 13:10 ` Lars Ingebrigtsen
2022-09-07 18:06 ` Andrea Corallo
2022-09-08 11:57 ` Lars Ingebrigtsen
2022-09-09 12:57 ` Andrea Corallo
2022-09-09 17:09 ` Lars Ingebrigtsen
2022-09-09 19:03 ` Andrea Corallo
2022-09-10 4:33 ` Lars Ingebrigtsen
2022-09-10 4:38 ` Lars Ingebrigtsen
2022-10-14 10:53 ` Lars Ingebrigtsen
2022-10-14 19:00 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-15 10:13 ` Lars Ingebrigtsen
2022-10-15 14:19 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-16 8:21 ` Lars Ingebrigtsen
2022-10-17 7:47 ` Andrea Corallo
2022-10-17 8:49 ` Lars Ingebrigtsen
2022-10-17 8:52 ` Andrea Corallo
2022-10-17 9:06 ` Eli Zaretskii
2022-10-17 9:13 ` Lars Ingebrigtsen
2022-10-17 11:59 ` Arash Esbati
2022-10-17 12:01 ` Lars Ingebrigtsen
2022-10-17 12:09 ` Arash Esbati
2022-10-17 12:21 ` Lars Ingebrigtsen
2022-10-17 12:31 ` Lars Ingebrigtsen
2022-10-17 12:53 ` Arash Esbati
2022-10-17 12:59 ` German Pacenza
2024-08-28 2:04 ` Phil Sainty
2024-09-06 8:44 ` Andrea Corallo
2024-09-14 7:50 ` Eli Zaretskii
2024-09-14 12:13 ` Phil Sainty
2024-09-28 8:53 ` Eli Zaretskii
2024-10-12 11:21 ` Eli Zaretskii
2024-10-13 21:20 ` Andrea Corallo
2024-10-13 22:12 ` Andrea Corallo
2024-10-15 13:01 ` Phil Sainty
2024-10-15 19:20 ` Andrea Corallo [this message]
2024-10-15 19:56 ` Phil Sainty
2024-10-15 20:27 ` Andrea Corallo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yp1cyk1uqaf.fsf@fencepost.gnu.org \
--to=acorallo@gnu.org \
--cc=57627@debbugs.gnu.org \
--cc=arash@gnu.org \
--cc=eliz@gnu.org \
--cc=larsi@gnus.org \
--cc=monnier@iro.umontreal.ca \
--cc=psainty@orcon.net.nz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.