aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorforcer <forcer>2005-09-17 11:33:00 +0000
committerforcer <mwolson@gnu.org>2005-09-17 11:33:00 +0000
commit259a95a880d5245e02bd37d9e992f07a59e9e683 (patch)
tree02c0d143d95bdc416ed07a22595b167d2c5b94f7
parent27c872628c0e7899af04e6d369b45d393e7ed69e (diff)
emms-show now knows when nothing is playing.
darcs-hash:20050917113301-2189f-0d126507e1d0cc0f9fdc7a8d22a9848a27814e29.gz
-rw-r--r--emms.el6
1 files 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))))