emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/exwm 2434bdb: Fix compatibility issue with Emacs 25


From: Chris Feng
Subject: [elpa] externals/exwm 2434bdb: Fix compatibility issue with Emacs 25
Date: Mon, 11 Feb 2019 09:27:51 -0500 (EST)

branch: externals/exwm
commit 2434bdb57dd49a32b61ca588fd5bb350d71a9236
Author: Chris Feng <address@hidden>
Commit: Chris Feng <address@hidden>

    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))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]