From 2434bdb57dd49a32b61ca588fd5bb350d71a9236 Mon Sep 17 00:00:00 2001 From: Chris Feng Date: Mon, 11 Feb 2019 00:00:00 +0000 Subject: [PATCH] Fix compatibility issue with Emacs 25 * exwm-input.el (exwm-input--unread-event): `string-version-lessp' is not available on Emacs 25. --- exwm-input.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exwm-input.el b/exwm-input.el index d0ae4ad..9b9816e 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))))