aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorforcer <forcer>2006-06-08 02:56:00 +0000
committerforcer <mwolson@gnu.org>2006-06-08 02:56:00 +0000
commitd39f230120b6571bba29c75bd882404cfe6edc47 (patch)
treedcc4d5dafb99dc36edcca3a866743fe366536392
parent162ccacf2da18280abc4c182b99c0151097ef2b3 (diff)
emms.el: Change directory to / before starting the player.
darcs-hash:20060608025659-2189f-cf54016de0748a3d9dc3f706db32c3125229bc08.gz
-rw-r--r--emms.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/emms.el b/emms.el
index bded095..a3c2e53 100644
--- a/emms.el
+++ b/emms.el
@@ -1216,8 +1216,11 @@ or nil if no such player exists."
(let ((player (emms-player-for track)))
(if (not player)
(error "Don't know how to play track: %S" track)
- (funcall (emms-player-get player 'start)
- track)))))
+ ;; Change default-directory so we don't accidentally block any
+ ;; directories the current buffer was visiting.
+ (let ((default-directory "/"))
+ (funcall (emms-player-get player 'start)
+ track))))))
(defun emms-player-started (player)
"Declare that the given EMMS PLAYER has started.