GNU bug report logs - #41242
Port feature/native-comp to Windows

Previous Next

Package: emacs;

Reported by: Nicolas Bértolo <nicolasbertolo <at> gmail.com>

Date: Wed, 13 May 2020 19:28:01 UTC

Severity: wishlist

Done: Andrea Corallo <akrl <at> sdf.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Andrea Corallo <akrl <at> sdf.org>
Cc: nicolasbertolo <at> gmail.com, 41242 <at> debbugs.gnu.org
Subject: bug#41242: Port feature/native-comp to Windows
Date: Sat, 23 May 2020 12:22:48 +0300
> From: Andrea Corallo <akrl <at> sdf.org>
> Cc: Nicolas Bértolo <nicolasbertolo <at> gmail.com>,
>         41242 <at> debbugs.gnu.org
> Date: Sat, 23 May 2020 08:35:43 +0000
> 
> >> When loading a dump file that contains native compiled elisp we try to find the
> >> .eln file. This uses Ffile_exists_p(). This function, in turn, calls
> >> Fexpand_file_name(). This function will use the root directory as
> >> `default_directory' as a fallback.
> >> 
> >> Getting the root directory requires reading the $emacs_dir environment variable.
> >> This is setup later in the initialization process. This caused a crash.
> >
> > Can you tell why this doesn't happen when *.elc files are used
> > instead?  Also, what do you mean by "loading a dump file that contains
> > native compiled elisp"? how did native compiled ELisp get into the
> > dump file in the first place?
> 
> Hi Eli,
> 
> you may be interested in this paragraph
> 
> https://akrl.sdf.org/gccemacs.html#orgb063106

Thanks.  I guess this changes a lot in how Emacs starts up?  E.g.,
what happens if the .el file was in the meantime modified and
recompiled into the .eln file? we will load the new versions instead
of the one that was preloaded, right?




This bug report was last modified 5 years and 41 days ago.

Previous Next


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