From 3e001aacb45633583282001d49634e080deaf8d7 Mon Sep 17 00:00:00 2001 From: Yoni Rabkin Date: Wed, 5 Aug 2009 21:47:28 +0300 Subject: * lisp/emms-playlist-mode.el: (emms-playlist-mode-open-buffer) Use `emms-insert-file-contents' to load saved playlist. --- lisp/emms-playlist-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisp') diff --git a/lisp/emms-playlist-mode.el b/lisp/emms-playlist-mode.el index 0ded269..7f4d776 100644 --- a/lisp/emms-playlist-mode.el +++ b/lisp/emms-playlist-mode.el @@ -447,9 +447,10 @@ It creates a buffer called \"filename\", and restores the contents of the saved playlist inside." (interactive "fFile: ") (let* ((s) - (buffer (find-file-noselect filename)) + (buffer (get-buffer-create filename)) (name (buffer-name buffer))) (with-current-buffer buffer + (emms-insert-file-contents filename) (setq s (read (buffer-string)))) (kill-buffer buffer) (with-current-buffer (emms-playlist-new name) -- cgit v1.2.3