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.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/emms-playlist-mode.el b/emms-playlist-mode.el
index cb5d80b..1e41624 100644
--- a/emms-playlist-mode.el
+++ b/emms-playlist-mode.el
@@ -324,7 +324,9 @@ of the saved playlist inside."
(defun emms-playlist-mode ()
"A major mode for Emms playlists."
(interactive)
- (kill-all-local-variables)
+ (let ((val emms-playlist-buffer-p))
+ (kill-all-local-variables)
+ (setq emms-playlist-buffer-p val))
(use-local-map emms-playlist-mode-map)
(setq major-mode 'emms-playlist-mode