From ef3300d01073ec67b2daea9e9d2553d378150858 Mon Sep 17 00:00:00 2001 From: William Xu Date: Tue, 17 Jun 2008 18:30:31 +0900 Subject: (emms-pause): If player hasn't started, then start it now. --- lisp/emms.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lisp') 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. -- cgit v1.2.3