GNU bug report logs -
#59424
Native compiler cannot compile .emacs
Previous Next
Full log
Message #46 received at 59424 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Juanma Barranquero <lekktu <at> gmail.com>
>> Date: Sun, 27 Nov 2022 20:53:27 +0100
>> Cc: akrl <at> sdf.org, 59424 <at> debbugs.gnu.org
>>
>> This patch below is what I did, *just* to get comp not to complain about the "missing" .emacs.el.
>>
>> Then something should be done to make it to compile .emacs, and I'm not sure where or how.
>
> So the problem is not to find the source of .emacs.elc, the problem is also
> to compile .emacs natively into .emacs.eln? I though the problem was only
> the former.
>
>> I can't shake the feeling that I'm thrashing around and someone who knows the code could do it faster and
>> cleaner.
>
> I'm not sure a cleaner way exists, but I will let Andrea chime in.
>
> Note that there's also maybe_defer_native_compilation.
Hello all,
yes I think Juanma you should have a look into
'maybe_defer_native_compilation'.
This will be called when the first byte compiled function defined in
your .emacs (if any) is being loaded. As you can see
'maybe_defer_native_compilation' tries to reconstruct the src filename,
so I guess this need some tweaking for this specific case.
Best Regards
Andrea
This bug report was last modified 2 years and 200 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.