emms-help
[Top][All Lists]
Advanced

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

Re: [emms-help] Feature request


From: Yoni Rabkin
Subject: Re: [emms-help] Feature request
Date: Fri, 04 Mar 2016 13:57:33 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux)

"Ivan Truskov <address@hidden>" <address@hidden> writes:

> Thanks for your work!
> I did think about one more thing (that i lacked when using emms).
> It seems emms-save-playlist saves playlist that is currently being
> played. While there is nothing wrong with that, sometimes one would like
> to save another playlist (which usually have to be in some renamed
> buffer).
> Use case: making several playlists from the album/collection
> you are listening to for the first time.
> Suggested solution: when emms-save-playlist has an argument, suggest a
> choice of emms playlist buffers to save
>
> What do you think?

It would look something like the following (untested), which you would
run when you are on the playlist you wanted to save. This version would
have the side effect of making the saved playlist current, so perhaps a
better version would save and restore the current playlist:

(defun emms-playlist-save-buffer (format file)
  (interactive (list (emms-source-playlist-read-format)
                     (read-file-name "Store as: "
                                     emms-source-file-default-directory
                                     emms-source-file-default-directory
                                     nil)))
  (emms-playlist-set-playlist-buffer)
  (emms-playlist-save format file))

-- 
   "Cut your own wood and it will warm you twice"



reply via email to

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