From 259a95a880d5245e02bd37d9e992f07a59e9e683 Mon Sep 17 00:00:00 2001 From: forcer Date: Sat, 17 Sep 2005 11:33:00 +0000 Subject: emms-show now knows when nothing is playing. darcs-hash:20050917113301-2189f-0d126507e1d0cc0f9fdc7a8d22a9848a27814e29.gz --- emms.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/emms.el b/emms.el index aed5e28..34244ea 100644 --- a/emms.el +++ b/emms.el @@ -294,8 +294,10 @@ It can also be negative to seek backwards." If INSERTP is non-nil, insert the description into the current buffer instead. This function uses `emms-show-format' to format the current track." (interactive "P") - (let ((string (format emms-show-format (emms-track-description - (emms-playlist-selected-track))))) + (let ((string (if emms-player-playing-p + (format emms-show-format (emms-track-description + (emms-playlist-selected-track))) + "Nothing playing right now"))) (if insertp (insert string) (message "%s" string)))) -- cgit v1.2.3