From 8027bb23119322eaf6c4601fbd4e3ae31b88961f Mon Sep 17 00:00:00 2001 From: Michael Olson Date: Wed, 31 May 2006 20:38:00 +0000 Subject: Make handling of multiple playlist buffers less error-prone. darcs-hash:20060531203810-1bfb2-7a5c8ca307d33ea501871a6222ab76ad4ada498d.gz --- emms-playlist-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'emms-playlist-mode.el') diff --git a/emms-playlist-mode.el b/emms-playlist-mode.el index 3f673cb..4f6ac2a 100644 --- a/emms-playlist-mode.el +++ b/emms-playlist-mode.el @@ -440,7 +440,8 @@ This preserves the current EMMS buffer." (type (emms-track-get track 'type))) (emms-playlist-select (point)) (run-hooks 'emms-player-stopped-hook) - (switch-to-buffer (setq emms-playlist-buffer (emms-playlist-new))) + (switch-to-buffer + (emms-playlist-set-playlist-buffer (emms-playlist-new))) (emms-add-playlist name))) ;;; -------------------------------------------------------- -- cgit v1.2.3