aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2023-05-10 20:19:04 +0200
committerDaniel Mendler <mail@daniel-mendler.de>2023-05-10 20:20:12 +0200
commitbe1d94d5e0e2fc9f02d2cd240d255c3a43037ba3 (patch)
treefc2a7c75ef86c582277b95a177006e0ee349c631
parent6411e9001aa66a2b442dba5de346656d40d7915d (diff)
More precise version checking
Make sure that compat-29 is still loaded on outdated Emacs 29 builds.
-rw-r--r--compat-29.el4
-rw-r--r--compat.el3
2 files changed, 4 insertions, 3 deletions
diff --git a/compat-29.el b/compat-29.el
index 1d67ecb..b02424b 100644
--- a/compat-29.el
+++ b/compat-29.el
@@ -26,10 +26,10 @@
;; Preloaded in loadup.el
;; TODO Update to 29.1 as soon as the Emacs emacs-29 branch version bumped
-(compat-require seq "29.0") ;; <compat-tests:seq>
+(compat-require seq "29.0.90") ;; <compat-tests:seq>
;; TODO Update to 29.1 as soon as the Emacs emacs-29 branch version bumped
-(compat-version "29.0")
+(compat-version "29.0.90")
;;;; Defined in startup.el
diff --git a/compat.el b/compat.el
index 2da7bb4..646ad99 100644
--- a/compat.el
+++ b/compat.el
@@ -50,7 +50,8 @@
;; time and runtime, but only if needed.
(eval-when-compile
(defmacro compat--maybe-require-29 ()
- (when (< emacs-major-version 29)
+ ;; TODO Update to 29.1 as soon as the Emacs emacs-29 branch version bumped
+ (when (version< emacs-version "29.0.90")
(require 'compat-29)
'(require 'compat-29))))
(compat--maybe-require-29)