aboutsummaryrefslogtreecommitdiff
path: root/emms.el
diff options
context:
space:
mode:
authorforcer <forcer>2005-09-16 13:53:00 +0000
committerforcer <mwolson@gnu.org>2005-09-16 13:53:00 +0000
commitddc5477ea066880b471c7c5705429fa99d952efc (patch)
tree59b6f875cbf8f0e8970b19121235f71d733cb807 /emms.el
parent9a310175d0c7f6af4088ba8a0425b97a40cc41b0 (diff)
Be able to clear the playlist buffer even if it's killed.
darcs-hash:20050916135349-2189f-7586b026b430eea1471581360b0b5ae8e4a94614.gz
Diffstat (limited to 'emms.el')
-rw-r--r--emms.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/emms.el b/emms.el
index ccb6d7b..ba67774 100644
--- a/emms.el
+++ b/emms.el
@@ -431,7 +431,8 @@ If called interactively, the new buffer is also selected."
(defun emms-playlist-clear ()
"Clear the current playlist.
If no playlist exists, a new one is generated."
- (if (not emms-playlist-buffer)
+ (if (or (not emms-playlist-buffer)
+ (not (buffer-live-p emms-playlist-buffer)))
(setq emms-playlist-buffer (emms-playlist-new))
(with-current-buffer emms-playlist-buffer
(let ((inhibit-read-only t))