aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Xu <william.xwl@gmail.com>2008-06-17 18:30:31 +0900
committerWilliam Xu <william.xwl@gmail.com>2008-06-17 18:30:31 +0900
commitef3300d01073ec67b2daea9e9d2553d378150858 (patch)
tree496d1805470d2e44c19b197633f7276109540612
parent67f5263943276faee0de53d947b6191205ae7a43 (diff)
(emms-pause): If player hasn't started, then start it now.
-rw-r--r--lisp/emms.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/emms.el b/lisp/emms.el
index 4825cbd..100e9e8 100644
--- a/lisp/emms.el
+++ b/lisp/emms.el
@@ -393,10 +393,12 @@ This is a good function to put in `emms-player-next-function'."
(emms-start))
(defun emms-pause ()
- "Pause the current player."
+ "Pause the current player.
+If player hasn't started, then start it now."
(interactive)
- (when emms-player-playing-p
- (emms-player-pause)))
+ (if emms-player-playing-p
+ (emms-player-pause)
+ (emms-start)))
(defun emms-seek (seconds)
"Seek the current player SECONDS seconds.