[Top][All Lists]

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

[emms-help] Patch: emms-playlist-tracks-in-region

From: Fran Burstall
Subject: [emms-help] Patch: emms-playlist-tracks-in-region
Date: Wed, 20 Jun 2018 21:35:48 +0100

The (not very important) issue: in a playlist buffer I hit
// (emms-playlist-limit-to-all).

What I expect to happen: nothing if the playlist is already

What happens: the playlist has its order reversed.

Commentary: emms-playlist-limit-to-all refills the playlist
from a list created by a previous application of
emms-playlist-tracks-in-region.  The latter lists the tracks of the
region in reverse order on account of just consing up said list
from the top.

Please consider applying the following tiny patch to


diff --git a/lisp/emms.el b/lisp/emms.el
index 062b6eb..7a14a9e 100644
--- a/lisp/emms.el
+++ b/lisp/emms.el
@@ -1098,7 +1098,7 @@ This is supplying ARGS as arguments to the source."
         (setq tracks (cons (emms-playlist-track-at (point))
-    tracks))
+    (nreverse tracks)))
 (defun emms-playlist-track-updated (track)
   "Update TRACK in all playlist buffers."

reply via email to

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