From 2434bdb57dd49a32b61ca588fd5bb350d71a9236 Mon Sep 17 00:00:00 2001 From: Chris Feng Date: Mon, 11 Feb 2019 00:00:00 +0000 Subject: 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(-) (limited to 'exwm-input.el') 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)))) -- cgit 1.4.1