GNU bug report logs - #40838
28.0.50; [feature/native-comp] Function overrides in init.el are not honored after deferred compilation

Previous Next

Package: emacs;

Reported by: Ihor Radchenko <yantar92 <at> gmail.com>

Date: Sat, 25 Apr 2020 08:19:02 UTC

Severity: normal

Found in version 28.0.50

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: Andrea Corallo <akrl <at> sdf.org>
To: Ihor Radchenko <yantar92 <at> gmail.com>
Cc: 40838 <at> debbugs.gnu.org
Subject: bug#40838: 28.0.50; [feature/native-comp] Function overrides in init.el are not honored after deferred compilation
Date: Sat, 25 Apr 2020 09:16:38 +0000
Hi Ihor,

Ihor Radchenko <yantar92 <at> gmail.com> writes:

> I redefine or patch some functions from packages in my init.el.
> However, I noticed that the default definitions can be unexpectedly
> restored.
>
> I observe the following when comp-deferred-compilation is set to 't:
>
> 1. A package that is not native-compiled is loaded on startup and the
> native-comp process is started asynchronously
> 2. Some function from the package is redefined in my init.el 
> 3. The native compilation finishes
> 4. My function definition from init.el is no longer working. The default
> version is restored.
>
> I do not think that loading .eln files should override function slots if
> they are different from what is in the original .el file.

You are 100% right, it should not (we have some specific logic for that).

I'll look into it thanks for the bug report.

  Andrea

-- 
akrl <at> sdf.org




This bug report was last modified 4 years and 300 days ago.

Previous Next


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