From ddc5477ea066880b471c7c5705429fa99d952efc Mon Sep 17 00:00:00 2001 From: forcer Date: Fri, 16 Sep 2005 13:53:00 +0000 Subject: Be able to clear the playlist buffer even if it's killed. darcs-hash:20050916135349-2189f-7586b026b430eea1471581360b0b5ae8e4a94614.gz --- emms.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'emms.el') 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)) -- cgit v1.2.3