From f605bbf41320f867614b2c56891b10986e405839 Mon Sep 17 00:00:00 2001 From: William Xu Date: Sun, 22 Nov 2009 21:38:22 +0800 Subject: (emms-playing-time-display): Gurantee emms-playing-time to be an integer. --- lisp/emms-playing-time.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/emms-playing-time.el b/lisp/emms-playing-time.el index 8194925..54a7f12 100644 --- a/lisp/emms-playing-time.el +++ b/lisp/emms-playing-time.el @@ -165,7 +165,7 @@ could call `emms-playing-time-enable-display' and (defun emms-playing-time-display () "Display playing time on the mode line." - (setq emms-playing-time (1+ emms-playing-time)) + (setq emms-playing-time (round (1+ emms-playing-time))) (setq emms-playing-time-string "") (when emms-playing-time-display-p (let* ((min (/ emms-playing-time 60)) -- cgit v1.2.3