[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug? org-assert-version does not prevent mixed install
From: |
Ihor Radchenko |
Subject: |
Re: Bug? org-assert-version does not prevent mixed install |
Date: |
Sun, 18 Dec 2022 14:26:33 +0000 |
Max Nikulin <manikulin@gmail.com> writes:
>> We might do something like
>>
>> (eval-and-compile (org-assert-version))
>
> This will give obscure error during compiling since `org-assert-version'
> is not defined.
>
> Unsure what will happen during load of the org.el file since org.elc is
> not produced. Perhaps the same cryptic error, but I can not explain it.
Yes, but we will at least abort the compilation this way.
> My idea (unchecked)
>
> ;; Remove when support of Emacs-29 is dropped.
> (unless (fboundp 'org-assert-version)
> (error "Org is compiled or loaded while older version loaded already.
> Please, ensure that no other org versions are loaded and recompile."))
I guess we can use the same error with what `org-assert-version' itself
throws:
(error "Org version mismatch. Make sure that correct `load-path' is set early
in init.el")
If you can, please check it. (AFAIU, you do have a setup where you can
reproduce the installation problem)
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>