about summary refs log tree commit diff
path: root/exwm-input.el
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2024-01-09T18·38+0100
committerDaniel Mendler <mail@daniel-mendler.de>2024-01-13T19·23+0100
commit96a9de8c19bdf4f6ef4a05a2be81f5f4cacc6b95 (patch)
tree96e78a1f4c8790c9360fcc9672cb5a54be1ac63d /exwm-input.el
parent4a3feec76f94a2688e885e4742b600a76b6fa8af (diff)
Depend on Emacs 27.1
Emacs 27.1 is widely available on all major Linux distributions, including the
ones with long time support.
Diffstat (limited to 'exwm-input.el')
-rw-r--r--exwm-input.el18
1 files changed, 4 insertions, 14 deletions
diff --git a/exwm-input.el b/exwm-input.el
index 5767f139782d..b4d6d28b213b 100644
--- a/exwm-input.el
+++ b/exwm-input.el
@@ -587,20 +587,10 @@ instead."
   (when (called-interactively-p 'any)
     (exwm-input--update-global-prefix-keys)))
 
-;; Putting (t . EVENT) into `unread-command-events' does not really work
-;; as documented for Emacs < 26.2.
-(eval-and-compile
-  (if (or (< emacs-major-version 26)
-          (and (= emacs-major-version 26)
-               (< emacs-minor-version 2)))
-      (defsubst exwm-input--unread-event (event)
-        (declare (indent defun))
-        (setq unread-command-events
-              (append unread-command-events (list event))))
-    (defsubst exwm-input--unread-event (event)
-      (declare (indent defun))
-      (setq unread-command-events
-            (append unread-command-events `((t . ,event)))))))
+(defsubst exwm-input--unread-event (event)
+  (declare (indent defun))
+  (setq unread-command-events
+        (append unread-command-events `((t . ,event)))))
 
 (defun exwm-input--mimic-read-event (event)
   "Process EVENT as if it were returned by `read-event'."