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


Message #26 received at 40838 <at> debbugs.gnu.org (full text, mbox):

From: Ihor Radchenko <yantar92 <at> gmail.com>
To: Andrea Corallo <akrl <at> sdf.org>
Cc: 40838 <at> debbugs.gnu.org
Subject: Re: bug#40838: 28.0.50; [feature/native-comp] Function overrides in
 init.el are not honored after deferred compilation
Date: Mon, 18 May 2020 23:23:49 +0800
[Message part 1 (text/plain, inline)]
> thanks this is appreciated because I haven't managed to reproduce it
> myself.

Finally, I found some reproducible example.
straight.el redefines some org functions before loading org.
It is done in straight--fix-org-function (org-git-version and
org-release are redefined). 
The redefined version works with org.elc, but somehow get overridden
when org.eln is loaded (in my case, the loading is triggered by elfeed-org).

Steps to reproduce:

1. Use the attached file to load emacs. No errors should appear.
2. Wait until org is native-compiled.
3. Restart emacs. The following errors appears
(straight--fix-org-function supposed to be a workaround for this error):

Error (use-package): elfeed-org/:catch: Invalid version syntax: ‘N/A’
(must start with a number)

4. Delete org.eln
5. Restart emacs. The error disappears.

Best,
Ihor

[native-fail-recepy.el (application/emacs-lisp, attachment)]
[Message part 3 (text/plain, inline)]


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

> Ihor Radchenko <yantar92 <at> gmail.com> writes:
>
>>> It would certanly help if you could provide a reproducer.
>>
>> I was trying to make a simple recipe to reproduce this, but failed.
>> The bug only appears with my config (though I do not see any problem
>> when not using native-comp branch).
>> Will try to narrow down the exact cause, but it may take a while.
>>
>> Best,
>> Ihor
>
> Hi Ihor,
>
> thanks this is appreciated because I haven't managed to reproduce it
> myself.
>
> Thanks
>
>   Andrea
>
> -- 
> akrl <at> sdf.org

-- 
Ihor Radchenko,
PhD,
Center for Advancing Materials Performance from the Nanoscale (CAMP-nano)
State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong University, Xi'an, China
Email: yantar92 <at> gmail.com, ihor_radchenko <at> alumni.sutd.edu.sg

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.