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

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

[elpa] externals/exwm f4aa838 4/4: Fix a compatibility issue with Emacs


From: Chris Feng
Subject: [elpa] externals/exwm f4aa838 4/4: Fix a compatibility issue with Emacs 24
Date: Fri, 23 Mar 2018 11:58:41 -0400 (EDT)

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

    Fix a compatibility issue with Emacs 24
    
    * exwm-core.el (exwm--defer): `time-add' in Emacs 24 only accept lists.
---
 exwm-core.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/exwm-core.el b/exwm-core.el
index 355b8b9..ab5159c 100644
--- a/exwm-core.el
+++ b/exwm-core.el
@@ -126,7 +126,9 @@ Nil can be passed as placeholder."
 The action is to call FUNCTION with arguments ARGS.  If Emacs is not idle,
 defer the action until Emacs is idle.  Otherwise, defer the action until at
 least SECS seconds later."
-  `(run-with-idle-timer (time-add (or (current-idle-time) (- ,secs)) ,secs)
+  `(run-with-idle-timer (+ (float-time (or (current-idle-time)
+                                          (seconds-to-time (- ,secs))))
+                          ,secs)
                         nil
                         ,function
                         ,@args))



reply via email to

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