Explorar el Código

* lisp/org-macs.el (org-assert-version): Use more lax assertion

See https://orgmode.org/list/jwvczc05u7r.fsf-monnier+emacs@gnu.org
Ihor Radchenko hace 2 años
padre
commit
73f25bba8f
Se han modificado 1 ficheros con 8 adiciones y 1 borrados
  1. 8 1
      lisp/org-macs.el

+ 8 - 1
lisp/org-macs.el

@@ -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.