mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2025-01-18 18:51:52 +00:00
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
This commit is contained in:
parent
086752fb33
commit
eadeaa8533
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user