emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [PATCH] Autoload `org-assert-version' and remove org-loaddefs.el


From: Max Nikulin
Subject: Re: [PATCH] Autoload `org-assert-version' and remove org-loaddefs.el
Date: Sat, 1 Apr 2023 21:44:10 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0

On 29/03/2023 23:52, Ihor Radchenko wrote:
Max Nikulin writes:
Sorry, I have not tried to compile Emacs myself and I am really puzzled
why you was not able to reproduce the issue.

I was able to reproduce on Debian using virtual machine.

To be precise, I am surprised that you are unable to reproduce the issue with older Emacs version compiled from source.

https://old.reddit.com/r/orgmode/comments/123qnqq/workaround_for_orgassertversion_problem_not/

I have no clue why your patch should help in this case.

My hypothesis: the user has `use-package' org-roam in their init file. Attempt to update org caused compiling new org when old version is already loaded due to Emacs-27 does not contain fixes that reload package that is installed. Next time load of org failed because it is result of mixed version compilation.

I am in doubts if emacs version should be checked or it should be e.g.
(fboundp 'org-assert-version).

It is indeed a cleaner approach.

I am not sure. Perhaps it should be (or (fboundp 'org-assert-version) (new-package-management-code)). Since testing for private function is not a reliable solution, only version check is available.





reply via email to

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