aboutsummaryrefslogtreecommitdiff
path: root/emms.el
diff options
context:
space:
mode:
Diffstat (limited to 'emms.el')
-rw-r--r--emms.el11
1 files 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 ()