branch: externals/tmr
commit 54a96f7a0eb7f7b0ca5ae7ce7e041071944ab075
Author: Protesilaos Stavrou <i...@protesilaos.com>
Commit: Protesilaos Stavrou <i...@protesilaos.com>

    Make tmr-mode-line--update-timer not depend on evenp
    
    It is only available in a newer Emacs than the version we depend on.
---
 tmr.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tmr.el b/tmr.el
index fc68cb37d2..c18d50729f 100644
--- a/tmr.el
+++ b/tmr.el
@@ -919,7 +919,7 @@ they are set to reasonable default values."
 (defun tmr-mode-line--format-remaining (timer)
   "Format remaining time for TIMER with appropriate face."
   (let* ((secs (float-time (time-subtract (tmr--timer-end-date timer) nil)))
-         (face (cond ((and (< secs 5) (evenp (truncate secs)))
+         (face (cond ((and (< secs 5) (= (% (truncate secs) 2) 0))
                       '(tmr-mode-line-urgent (:inverse-video t)))
                      ((< secs 30) 'tmr-mode-line-urgent)
                      ((= (truncate secs) 30)

Reply via email to