aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorforcer <forcer>2005-09-17 23:49:00 +0000
committerforcer <mwolson@gnu.org>2005-09-17 23:49:00 +0000
commit82aa0e5fe261e9205392edf65422b4ada0cead1c (patch)
tree8a314258f8151409476e95bf5c6c46086e2029c6
parentb442a6a3ab4de2258ceb2625a08a8e87931bb765 (diff)
emms-playlist-select should not switch to the playlist buffer.
darcs-hash:20050917234943-2189f-af7835eb6a888554adbb38ebff4e5bc0c9169c2d.gz
-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 ()