Skip to content

Commit

Permalink
* lisp/org-macs.el (org-assert-version): Use more lax assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
yantar92 committed Sep 26, 2022
1 parent c8e0a40 commit 73f25bb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lisp/org-macs.el
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 73f25bb

Please sign in to comment.