diff options
author | forcer <forcer> | 2006-06-08 02:56:00 +0000 |
---|---|---|
committer | forcer <mwolson@gnu.org> | 2006-06-08 02:56:00 +0000 |
commit | d39f230120b6571bba29c75bd882404cfe6edc47 (patch) | |
tree | dcc4d5dafb99dc36edcca3a866743fe366536392 | |
parent | 162ccacf2da18280abc4c182b99c0151097ef2b3 (diff) |
emms.el: Change directory to / before starting the player.
darcs-hash:20060608025659-2189f-cf54016de0748a3d9dc3f706db32c3125229bc08.gz
-rw-r--r-- | emms.el | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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. |