From 4cf3a346444fc11195dc609db892ecdea17cda7a Mon Sep 17 00:00:00 2001 From: yoni-r Date: Tue, 13 Jun 2006 09:06:00 +0000 Subject: fix bug in emms-playlist-mode-center-current darcs-hash:20060613090604-85c19-189240fc999924c5bd441319f2de9afc1bb49b6f.gz --- emms-playlist-mode.el | 7 ++++--- 1 file 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." -- cgit v1.2.3