aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Olson <mwolson@gnu.org>2005-09-24 18:38:00 +0000
committerMichael Olson <mwolson@gnu.org>2005-09-24 18:38:00 +0000
commit5bab7a72a1a5ffc0134fa370b096925fd91c771f (patch)
tree2862a67377edacadbfd022053ca80facfe3e5dcd
parent7c95eebcdd4c731400825d968f5001642eb4999f (diff)
emms-playlist-mode.el: 3rd attempt to not clobber
emms-playlist-buffer-p. darcs-hash:20050924183844-1bfb2-7a7c3f5a022a3f877411ac6bc179401dd5aba9d0.gz
-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