branch: externals/exwm
commit 2434bdb57dd49a32b61ca588fd5bb350d71a9236
Author: Chris Feng <[email protected]>
Commit: Chris Feng <[email protected]>
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))))