aboutsummaryrefslogtreecommitdiff
path: root/emms-playlist-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'emms-playlist-mode.el')
-rw-r--r--emms-playlist-mode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/emms-playlist-mode.el b/emms-playlist-mode.el
index ce44b36..e2b0d8c 100644
--- a/emms-playlist-mode.el
+++ b/emms-playlist-mode.el
@@ -316,7 +316,8 @@ of the saved playlist inside."
(defun emms-playlist-mode-go ()
"Switch to the current emms-playlist buffer and use emms-playlist-mode."
(interactive)
- (if (null emms-playlist-buffer)
+ (if (or (null emms-playlist-buffer)
+ (not (buffer-live-p emms-playlist-buffer)))
(error "No current Emms buffer")
(switch-to-buffer emms-playlist-buffer)
(when (and (not (eq major-mode 'emms-playlist-mode))