mirror of
https://github.com/ch11ng/exwm.git
synced 2024-11-23 19:47:58 +01:00
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:
parent
b1f74203be
commit
2434bdb57d
1 changed files with 3 additions and 1 deletions
|
@ -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))))
|
||||
|
|
Loading…
Reference in a new issue