diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2023-01-05 15:29:05 +0100 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2023-01-05 15:29:05 +0100 |
| commit | 299d70ecea004d06907dc6948ff6cb34d3aa2897 (patch) | |
| tree | 91476f00c1c13c631d2c0d0903c26b807e6f8bb6 /compat-macs.el | |
| parent | ab85fb2050af618bd939d59f6e8336cc69235aa3 (diff) | |
Exclusive bounds for :max-version
Diffstat (limited to 'compat-macs.el')
| -rw-r--r-- | compat-macs.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/compat-macs.el b/compat-macs.el index 73e2f0a..247ecfb 100644 --- a/compat-macs.el +++ b/compat-macs.el @@ -53,11 +53,11 @@ be installed). ATTR is a plist used to modify the generated code. The following attributes are handled, all others are ignored: -- :min-version :: Prevent the compatibility definition from begin - installed in versions older than indicated (string). +- :min-version :: Do not install the compatibility definition + if Emacs version older than indicated. -- :max-version :: Prevent the compatibility definition from begin - installed in versions newer than indicated (string). +- :max-version :: Do not install the compatibility definition + if Emacs version newer or equal than indicated. - :feature :: The library the code is supposed to be loaded with (via `eval-after-load'). @@ -94,7 +94,7 @@ ignored: ((or (and min-version (version< emacs-version min-version)) (and max-version - (version< max-version emacs-version))) + (version<= max-version emacs-version))) nil) ((plist-get attr :explicit) t) |
