From 757479e76a2a6c15554055d10c87a11ca7b51e2a Mon Sep 17 00:00:00 2001 From: forcer Date: Tue, 13 Sep 2005 14:46:00 +0000 Subject: Call widen in shuffle and sort. darcs-hash:20050913144610-2189f-177ce9e62c59598fa2e96d1060df6bac490f3ded.gz --- emms.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/emms.el b/emms.el index f3a2ce0..f75c501 100644 --- a/emms.el +++ b/emms.el @@ -639,6 +639,7 @@ This uses `emms-playlist-insert-track-function'." (defun emms-playlist-simple-shuffle () "Shuffle the whole playlist buffer." (let ((current nil)) + (widen) (when emms-player-playing-p (setq current (emms-playlist-selected-track)) (goto-char emms-playlist-selected-marker) @@ -661,6 +662,7 @@ This uses `emms-playlist-insert-track-function'." (defun emms-playlist-simple-sort () "Sort the whole playlist buffer." + (widen) (let ((current (emms-playlist-selected-track)) (tracks (emms-playlist-tracks-in-region (point-min) (point-max)))) -- cgit v1.2.3