aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.