[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emms-patches] Function to Display Current Play Modes
From: |
Ian D |
Subject: |
Re: [Emms-patches] Function to Display Current Play Modes |
Date: |
Sat, 03 May 2014 21:12:05 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 |
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