From c763540c3473e06405825d6f1679f97b99567de9 Mon Sep 17 00:00:00 2001 From: Daimrod Date: Thu, 30 May 2013 14:09:26 +0200 Subject: Play tracks randomly [[PGP Signed Part:Undecided]] Lucas Bonnet writes: > Yoni Rabkin writes: > >> Daimrod writes: >> >>> Yoni Rabkin writes: >>> >>>> Daimrod writes: >>>> >>>>> Hello, >>>>> >>>>> I've attached a small patch which adds `emms-toggle-random-playlist'. It >>>>> sets `emms-player-next-function' to either `emms-next-noerror' or >>>>> `emms-random'. >>>> >>>> How is this different from running M-x emms-shuffle on the playlist? >>> >>> I agree they're close, but this one doesn't shuffle the playlist and it >>> persists when the playlist is changed. >> >> I certainly have no problem with it; I was just making sure you were >> aware of emms-shuffle. >> >> If Lucas is fine with installing it (I don't think it needs assignment >> papers) I would ask that you please also send in a patch to the manual >> documenting this change. > > I'd say it's small enough to fly below the copyright papers radar :) > > Thanks for your patch! > > Regards, Oops, there is a small typo in the patch, here is the fix. Sorry for the inconvenience. [2. text/x-diff; 0001-lisp-emms.el-emms-toggle-random-playlist-Fix-typo-in.patch] From 33041798b58d68f76cd8006915bb153a94769e9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Jadi?= Date: Thu, 30 May 2013 14:07:58 +0200 Subject: [PATCH] lisp/emms.el (emms-toggle-random-playlist): Fix typo in code * lisp/emms.el (emms-toggle-random-playlist): Fix typo in code. --- lisp/emms.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/emms.el') diff --git a/lisp/emms.el b/lisp/emms.el index 81bd80c..d976017 100644 --- a/lisp/emms.el +++ b/lisp/emms.el @@ -501,7 +501,7 @@ See `emms-random-playlist'." (if emms-random-playlist (progn (setq emms-player-next-function 'emms-random) (message "Will play the tracks randomly.")) - (setq emms-play-next-function 'emms-next-noerror) + (setq emms-player-next-function 'emms-next-noerror) (message "Will play the tracks sequentially."))) (defun emms-toggle-repeat-playlist () -- cgit v1.2.3