aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryonirabkin <yonirabkin>2005-09-18 14:37:00 +0000
committeryonirabkin <mwolson@gnu.org>2005-09-18 14:37:00 +0000
commit660a39312ab1506e5e11efec6af6e8f23892239e (patch)
tree72965b0d5d580b3eabaef96ee235aa243be14e38
parentd0efdf999ea41be893b19228b6d0e1c72b9d00d1 (diff)
fixing errors after breakage
darcs-hash:20050918143712-be80e-a610dbf62d72b902d4a2d55f598dcc42c652f3aa.gz
-rw-r--r--emms-playlist-mode.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/emms-playlist-mode.el b/emms-playlist-mode.el
index b9721a0..16a640f 100644
--- a/emms-playlist-mode.el
+++ b/emms-playlist-mode.el
@@ -280,10 +280,11 @@ of the saved playlist inside."
(defun emms-playlist-mode-startup ()
"Instigate emms-playlist-mode on the current buffer."
- (unless (or emms-playlist-selected-marker
- emms-player-playing-p)
+ (when (not (or emms-playlist-selected-marker
+ emms-player-playing-p))
(emms-stop)
- (emms-playlist-select-first))
+ (when emms-playlist-buffer-p
+ (emms-playlist-select-first)))
(when emms-playlist-selected-marker
(emms-playlist-mode-overlay-selected)
(goto-char (or emms-playlist-mode-selected-overlay-marker