aboutsummaryrefslogtreecommitdiff
path: root/emms-mode-line.el
diff options
context:
space:
mode:
authoryonirabkin <yonirabkin>2005-12-03 19:47:00 +0000
committeryonirabkin <mwolson@gnu.org>2005-12-03 19:47:00 +0000
commit909f28d8fda2c467be867a3a3942d4bb72ed516a (patch)
treeb49f18151c52296fc1cd9adbb2a7ecb862e43c94 /emms-mode-line.el
parent8f9741378df9aadcb27151f05a84ffe9c7895088 (diff)
fix mode-alter bug
darcs-hash:20051203194736-be80e-90831954d25cd6d0608343e5be7317c8bc467683.gz
Diffstat (limited to 'emms-mode-line.el')
-rw-r--r--emms-mode-line.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/emms-mode-line.el b/emms-mode-line.el
index 8e65128..f865de4 100644
--- a/emms-mode-line.el
+++ b/emms-mode-line.el
@@ -102,7 +102,8 @@ Optional TRACK is used to be compatible with
(defun emms-mode-line-alter-mode-line ()
"Update the mode-line with song info."
- (when emms-mode-line-mode-line-function
+ (when (and emms-mode-line-mode-line-function
+ emms-player-playing-p)
(setq emms-mode-line-string
(funcall emms-mode-line-mode-line-function))
(force-mode-line-update)))