[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emms-patches] [commit][master] (emms-pause): If player hasn't started,
From: |
mwolson |
Subject: |
[Emms-patches] [commit][master] (emms-pause): If player hasn't started, then start it now. |
Date: |
Tue, 17 Jun 2008 05:40:07 -0400 |
commit ef3300d01073ec67b2daea9e9d2553d378150858
Author: William Xu <address@hidden>
Date: Tue Jun 17 18:30:31 2008 +0900
(emms-pause): If player hasn't started, then start it now.
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emms-patches] [commit][master] (emms-pause): If player hasn't started, then start it now.,
mwolson <=