From 909f28d8fda2c467be867a3a3942d4bb72ed516a Mon Sep 17 00:00:00 2001 From: yonirabkin Date: Sat, 3 Dec 2005 19:47:00 +0000 Subject: fix mode-alter bug darcs-hash:20051203194736-be80e-90831954d25cd6d0608343e5be7317c8bc467683.gz --- emms-mode-line.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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))) -- cgit v1.2.3