mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-13 04:10:29 +00:00
* lisp/org-macs.el (org-assert-version): Use more lax assertion
See https://orgmode.org/list/jwvczc05u7r.fsf-monnier+emacs@gnu.org
This commit is contained in:
parent
c8e0a402df
commit
73f25bba8f
|
@ -38,7 +38,14 @@
|
|||
|
||||
(defmacro org-assert-version ()
|
||||
"Assert compile time and runtime version match."
|
||||
`(unless (equal (org-git-version) ,(org-git-version))
|
||||
;; We intentionally use a more permissive `org-release' instead of
|
||||
;; `org-git-version' to work around deficiencies in Elisp
|
||||
;; compilation after pulling latest changes. Unchanged files will
|
||||
;; not be re-compiled and thus their macro-expanded
|
||||
;; `org-assert-version' calls would fail using strict
|
||||
;; `org-git-version' check because the generated Org version strings
|
||||
;; will not match.
|
||||
`(unless (equal (org-release) ,(org-release))
|
||||
(warn "Org version mismatch. Make sure that correct `load-path' is set early in init.el
|
||||
This warning usually appears when a built-in Org version is loaded
|
||||
prior to the more recent Org version.
|
||||
|
|
Loading…
Reference in a new issue