From a06287cc23cbf151b2cb67eba69cf5ff9e230534 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 7 Dec 2024 17:56:22 -0500 Subject: [PATCH] fix: only check for major emacs version changes Bytecode is typically forwards-incompatible across major releases, not minor ones. --- lisp/doom.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/doom.el b/lisp/doom.el index 47cf550c2..ef15c03dc 100644 --- a/lisp/doom.el +++ b/lisp/doom.el @@ -108,11 +108,11 @@ ;; up/downgraded. This is because byte-code isn't backwards compatible, and many ;; packages (including Doom), bake in absolute paths into their caches that need ;; to be refreshed. -(let ((old-version (eval-when-compile emacs-version))) - (unless (equal emacs-version old-version) +(let ((old-version (eval-when-compile emacs-major-version))) + (unless (= emacs-major-version old-version) (user-error (concat "Doom was compiled with Emacs %s, but was loaded with %s. Run 'doom sync' to" "recompile it.") - emacs-version old-version))) + emacs-major-version old-version))) ;;; Custom features & global constants ;; Doom has its own features that its modules, CLI, and user extensions can