diff options
author | Yoni Rabkin <yoni@rabkins.net> | 2009-08-05 21:47:28 +0300 |
---|---|---|
committer | Yoni Rabkin <yoni@rabkins.net> | 2009-08-05 21:47:28 +0300 |
commit | 3e001aacb45633583282001d49634e080deaf8d7 (patch) | |
tree | b8118e04cd7f42a2ac76812c34cac5bc4993406a /lisp | |
parent | 2c1c56d553df6ee1973134fdb90543454b1146ca (diff) |
* lisp/emms-playlist-mode.el: (emms-playlist-mode-open-buffer) Use
`emms-insert-file-contents' to load saved playlist.
Diffstat (limited to 'lisp')
-rw-r--r-- | 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) |