diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2023-05-10 20:19:04 +0200 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2023-05-10 20:20:12 +0200 |
| commit | be1d94d5e0e2fc9f02d2cd240d255c3a43037ba3 (patch) | |
| tree | fc2a7c75ef86c582277b95a177006e0ee349c631 | |
| parent | 6411e9001aa66a2b442dba5de346656d40d7915d (diff) | |
More precise version checking
Make sure that compat-29 is still loaded on outdated Emacs 29 builds.
| -rw-r--r-- | compat-29.el | 4 | ||||
| -rw-r--r-- | compat.el | 3 |
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 @@ -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) |
