summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIhor Radchenko <yantar92@posteo.net>2023-12-24 13:47:04 +0100
committerIhor Radchenko <yantar92@posteo.net>2023-12-25 15:50:08 +0100
commitbd9dc3217844bd829b8c385fe708e0771e84c9a1 (patch)
treeffcbf87a16401144ea8b8aa12302e0c2d8a807e0
parent3afae6690f6bd932fb60ab66b132b9a972501310 (diff)
downloadorg-mode-bd9dc3217.tar.gz
org-assert-version: Disable version check in .elc files for built-in Org mode
* lisp/org-macs.el (org-assert-version): Record `org--inhibit-version-check' during compile time inside `org-assert-version'. This way, .elc files generated when compiling built-in Org mode in Emacs git tree never trigger version mismatch warning. Link: https://yhetil.org/emacs-devel/87zfxzdbna.fsf@yahoo.com
-rw-r--r--lisp/org-macs.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-macs.el b/lisp/org-macs.el
index 35146ac..604ffc1 100644
--- a/lisp/org-macs.el
+++ b/lisp/org-macs.el
@@ -56,7 +56,7 @@ by `package-activate-all').")
;; `org-assert-version' calls would fail using strict
;; `org-git-version' check because the generated Org version strings
;; will not match.
- `(unless (or org--inhibit-version-check (equal (org-release) ,(org-release)))
+ `(unless (or ,org--inhibit-version-check (equal (org-release) ,(org-release)))
(warn "Org version mismatch.
This warning usually appears when a built-in Org version is loaded
prior to the more recent Org version.