aboutsummaryrefslogtreecommitdiff
path: root/emms-playlist-mode.el
diff options
context:
space:
mode:
authoryoni-r <yoni-r>2006-06-13 09:06:00 +0000
committeryoni-r <mwolson@gnu.org>2006-06-13 09:06:00 +0000
commit4cf3a346444fc11195dc609db892ecdea17cda7a (patch)
tree35ed94cd4aa2eccd8dfe79755c5df925bae2fced /emms-playlist-mode.el
parent57ce5391b5d471a4ada74b322b0904a0809a0639 (diff)
fix bug in emms-playlist-mode-center-current
darcs-hash:20060613090604-85c19-189240fc999924c5bd441319f2de9afc1bb49b6f.gz
Diffstat (limited to 'emms-playlist-mode.el')
-rw-r--r--emms-playlist-mode.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/emms-playlist-mode.el b/emms-playlist-mode.el
index 4d34f44..0978bea 100644
--- a/emms-playlist-mode.el
+++ b/emms-playlist-mode.el
@@ -153,9 +153,10 @@ FUN should be a function."
(defun emms-playlist-mode-center-current ()
"Move point to the currently selected track."
(interactive)
- (goto-char (if emms-playlist-mode-selected-overlay
- (overlay-start emms-playlist-mode-selected-overlay)
- (point-min))))
+ (with-current-emms-playlist
+ (goto-char (if emms-playlist-mode-selected-overlay
+ (overlay-start emms-playlist-mode-selected-overlay)
+ (point-min)))))
(defun emms-playlist-mode-play-current-track ()
"Start playing track at point."