[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
- Re: org-assert-version considered harmful, Ihor Radchenko, 2023/08/16
- Re: org-assert-version considered harmful, Stefan Monnier, 2023/08/16
- Re: org-assert-version considered harmful, Ihor Radchenko, 2023/08/16
- Re: org-assert-version considered harmful, Stefan Monnier, 2023/08/16
- Re: org-assert-version considered harmful, Ihor Radchenko, 2023/08/18
- Re: org-assert-version considered harmful,
Stefan Monnier <=
- Re: org-assert-version considered harmful, Ihor Radchenko, 2023/08/18
- Re: org-assert-version considered harmful, Stefan Monnier, 2023/08/18
- Re: org-assert-version considered harmful, Ihor Radchenko, 2023/08/18
- Re: org-assert-version considered harmful, Ihor Radchenko, 2023/08/18
Re: org-assert-version considered harmful, Max Nikulin, 2023/08/17