Fix compatibility issue with Emacs 25

* exwm-input.el (exwm-input--unread-event): `string-version-lessp' is
not available on Emacs 25.
This commit is contained in:
Chris Feng 2019-02-11 00:00:00 +00:00
parent b1f74203be
commit 2434bdb57d

View file

@ -549,7 +549,9 @@ instead."
;; Putting (t . EVENT) into `unread-command-events' does not really work ;; Putting (t . EVENT) into `unread-command-events' does not really work
;; as documented for Emacs < 26.2. ;; as documented for Emacs < 26.2.
(eval-and-compile (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) (defsubst exwm-input--unread-event (event)
(setq unread-command-events (setq unread-command-events
(append unread-command-events (list event)))) (append unread-command-events (list event))))