about summary refs log tree commit diff
path: root/exwm-input.el
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2019-02-11T00·00+0000
committerChris Feng <chris.w.feng@gmail.com>2019-02-11T00·00+0000
commit2434bdb57dd49a32b61ca588fd5bb350d71a9236 (patch)
treebfca9bca6aaef71f8aca402b4e0ab9f9f1707ff3 /exwm-input.el
parentb1f74203bee715774e5f22a26edd941464f5e236 (diff)
Fix compatibility issue with Emacs 25
* exwm-input.el (exwm-input--unread-event): `string-version-lessp' is
not available on Emacs 25.
Diffstat (limited to 'exwm-input.el')
-rw-r--r--exwm-input.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/exwm-input.el b/exwm-input.el
index d0ae4ad812..9b9816e975 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))))