diff options
author | Damien Elmes <emms@repose.cx> | 2006-07-06 09:51:00 +0000 |
---|---|---|
committer | Damien Elmes <emms@repose.cx> | 2006-07-06 09:51:00 +0000 |
commit | cf84eab8b93a5ce922b64bc13954166b9847c8bc (patch) | |
tree | 8d1d51a3ffe262306d6dd0626ae1e51c03ba058e | |
parent | 0bcea596a4ea9d5601259f34cab825d3bf1e8394 (diff) |
playlist: don't assume there's a track at point
this makes RET on an group heading play the first track instead of
failing
darcs-hash:20060706095138-4e3e3-681dd364f708bcf5c88d0534d0019c091fb62707.gz
-rw-r--r-- | emms-playlist-mode.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/emms-playlist-mode.el b/emms-playlist-mode.el index 21e782e..a71e577 100644 --- a/emms-playlist-mode.el +++ b/emms-playlist-mode.el @@ -184,6 +184,8 @@ FUN should be a function." "Start playing track at point." (interactive) (emms-playlist-set-playlist-buffer) + (unless (emms-playlist-track-at (point)) + (emms-playlist-next)) (emms-playlist-select (point)) (when emms-player-playing-p (emms-stop)) |