aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Olson <mwolson@gnu.org>2005-09-22 13:24:00 +0000
committerMichael Olson <mwolson@gnu.org>2005-09-22 13:24:00 +0000
commit4214b958e378284769aa321328d05349e8624e4c (patch)
tree84f262c109c29a06318db77a549278095f81ca7a
parent50c2d32db87d015e74117cd246bc8708b58dff41 (diff)
emms-playlist-mode-go: Add buffer-live-p check to circumvent a
"selecting deleted buffer" error. darcs-hash:20050922132424-1bfb2-69edb479fbda82e7c3e8e9cb9500611844a43b3e.gz
-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))