From 82aa0e5fe261e9205392edf65422b4ada0cead1c Mon Sep 17 00:00:00 2001 From: forcer Date: Sat, 17 Sep 2005 23:49:00 +0000 Subject: emms-playlist-select should not switch to the playlist buffer. darcs-hash:20050917234943-2189f-af7835eb6a888554adbb38ebff4e5bc0c9169c2d.gz --- emms.el | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/emms.el b/emms.el index 34244ea..d503685 100644 --- a/emms.el +++ b/emms.el @@ -593,12 +593,11 @@ If no playlist exists, a new one is generated." (defun emms-playlist-select (pos) "Select the track at POS." - (with-current-emms-playlist - (when (not (emms-playlist-track-at pos)) - (error "No track at position %s" pos)) - (when (not emms-playlist-selected-marker) - (setq emms-playlist-selected-marker (make-marker))) - (set-marker emms-playlist-selected-marker pos)) + (when (not (emms-playlist-track-at pos)) + (error "No track at position %s" pos)) + (when (not emms-playlist-selected-marker) + (setq emms-playlist-selected-marker (make-marker))) + (set-marker emms-playlist-selected-marker pos) (run-hooks 'emms-playlist-selection-changed-hook)) (defun emms-playlist-select-next () -- cgit v1.2.3