On 05/03/2014 07:57 PM, Yoni Rabkin wrote:
Are you OK with me adding the following to Emms? I've changed the
wording (a bit) and compacted the code (a bit):

(defun emms-display-modes ()
   "Display the current EMMS play modes."
   (interactive)
   (message "repeat playlist: %s, repeat track: %s, random: %s"
           (if emms-repeat-playlist "yes" "no")
           (if emms-repeat-track "yes" "no")
           (if emms-random-playlist "yes" "no")))
    Go for it.  I keep forgetting that `message' can do formatting.
Also, how about adding an option to have this called whenever Emms
starts playing? The option will be off by default, but people who
regularly change the repeat and random modes might find turning it on
useful.
    That sounds good.

Ian D

_______________________________________________
Emms-patches mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/emms-patches

Reply via email to