bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#40838: 28.0.50; [feature/native-comp] Function overrides in init.el


From: Ihor Radchenko
Subject: 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

> 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

Attachment: native-fail-recepy.el
Description: application/emacs-lisp



Andrea Corallo <akrl@sdf.org> writes:

> Ihor Radchenko <yantar92@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@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@gmail.com, ihor_radchenko@alumni.sutd.edu.sg

reply via email to

[Prev in Thread] Current Thread [Next in Thread]