emms-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emms-patches] [COMMIT] * lisp/emms-playlist-mode.el: (emms-playlist-mod


From: Yoni Rabkin
Subject: [Emms-patches] [COMMIT] * lisp/emms-playlist-mode.el: (emms-playlist-mode-open-buffer) Use `emms-insert-file-contents' to load saved playlist.
Date: Wed, 5 Aug 2009 21:47:28 +0300

---
 lisp/emms-playlist-mode.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

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)
-- 
debian.1.5.6.1.19.ge6b2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]