diff options
-rw-r--r-- | emms.el | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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 () |