emms-help
[Top][All Lists]
Advanced

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

[emms-help] Changing the way emms-next and emms-prev work


From: Yoni Rabkin Katzenell
Subject: [emms-help] Changing the way emms-next and emms-prev work
Date: Tue, 13 Sep 2005 13:49:40 +0300
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

`emms-next' and friends skip to the next song and start playing even if
Emms is currently stopped.

I think that a more general method of calling track movement while
preserving the current playing state can be implementing `emms-next',
`emms-previous' and other track movement functions in term of something
like:

(defmacro emms-track-change (fun)
  `(lambda () 
     ,@(if emms-player-playing-p
        (list '(emms-stop) fun '(emms-start))
         (list fun))))

(defun emms-next ()
   (funcall (emms-track-change (emms-playlist-select-next))))

...or not.

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




reply via email to

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