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

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

[nongnu] elpa/pacmacs cec13dd618 308/472: Fix Emacs 24.3 build fail (#15


From: ELPA Syncer
Subject: [nongnu] elpa/pacmacs cec13dd618 308/472: Fix Emacs 24.3 build fail (#159)
Date: Thu, 6 Jan 2022 21:59:34 -0500 (EST)

branch: elpa/pacmacs
commit cec13dd618b3a0c734e9999553df912c383dfd53
Author: rexim <reximkut@gmail.com>
Commit: rexim <reximkut@gmail.com>

    Fix Emacs 24.3 build fail (#159)
---
 pacmacs.el | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/pacmacs.el b/pacmacs.el
index 6a8de9ee48..3f11ad74b2 100644
--- a/pacmacs.el
+++ b/pacmacs.el
@@ -157,9 +157,13 @@
   (dolist (terrified-ghost pacmacs--terrified-ghosts)
     (plist-bind ((terrified-timer :terrified-timer))
         terrified-ghost
-      (when (<= (- terrified-timer pacmacs-tick-duration-ms)
-                pacmacs--ghost-blinking-threshold-ms
-                terrified-timer)
+      (when
+          ;; FIXME: In Emacs 24.3 `<=` accepts only arguments. Please
+          ;; rewrite this when Emacs 24.3 is finally dropped.
+          (and (<= (- terrified-timer pacmacs-tick-duration-ms)
+                   pacmacs--ghost-blinking-threshold-ms)
+               (<= pacmacs--ghost-blinking-threshold-ms
+                   terrified-timer))
         (plist-put terrified-ghost
                    :current-animation
                    (pacmacs-load-anim "Blinking-Terrified-Ghost"))))))



reply via email to

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