emacs-orgmode
[Top][All Lists]
Advanced

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

Re: org-assert-version considered harmful


From: Stefan Monnier
Subject: Re: org-assert-version considered harmful
Date: Fri, 18 Aug 2023 09:19:16 -0400
User-agent: Gnus/5.13 (Gnus v5.13)

>> For this one I can see the problem.  You define:
>>
>>     (defmacro org-require-with-shadowcheck (feature)
>>       [...]
>>       `(eval-and-compile ...))
>>
>> so it will behave like a function, except that it's also
>> executed during macroexpansion, so the (require 'org-element) within
>> `org-set-modules` will be eagerly executed while loading `org.el` :-(
>>
>> You should define `org-require-with-shadowcheck` as a function (just
>> like `require`).
>
> But then it will not run during byte-compilation.

Yeah, I was assuming that you had replaced all `require`s with
`org-require-with-shadowcheck`, but that's probably not what you'd done.

Not knowing what you had done (beside define
`org-require-with-shadowcheck`), it's hard to reproduce/investigate, tho.


        Stefan




reply via email to

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