diff options
author | Chris Feng <chris.w.feng@gmail.com> | 2019-02-11T00·00+0000 |
---|---|---|
committer | Chris Feng <chris.w.feng@gmail.com> | 2019-02-11T00·00+0000 |
commit | 2434bdb57dd49a32b61ca588fd5bb350d71a9236 (patch) | |
tree | bfca9bca6aaef71f8aca402b4e0ab9f9f1707ff3 | |
parent | b1f74203bee715774e5f22a26edd941464f5e236 (diff) |
Fix compatibility issue with Emacs 25
* exwm-input.el (exwm-input--unread-event): `string-version-lessp' is not available on Emacs 25.
-rw-r--r-- | exwm-input.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/exwm-input.el b/exwm-input.el index d0ae4ad81250..9b9816e9753b 100644 --- a/exwm-input.el +++ b/exwm-input.el @@ -549,7 +549,9 @@ instead." ;; Putting (t . EVENT) into `unread-command-events' does not really work ;; as documented for Emacs < 26.2. (eval-and-compile - (if (string-version-lessp emacs-version "26.2") + (if (or (< emacs-major-version 26) + (and (= emacs-major-version 26) + (< emacs-minor-version 2))) (defsubst exwm-input--unread-event (event) (setq unread-command-events (append unread-command-events (list event)))) |