diff options
author | forcer <forcer> | 2005-09-12 12:53:00 +0000 |
---|---|---|
committer | forcer <mwolson@gnu.org> | 2005-09-12 12:53:00 +0000 |
commit | 699cf4d82a5f96cdfb9f0e0d7b8f3c4da834bc19 (patch) | |
tree | 630604a8ce44b6f255d214a4623acb93a10cd347 /emms.el | |
parent | 58a13760b87d70587eb92cdb415779ad8fd34858 (diff) |
Select a track after adding, too, if none is selected.
darcs-hash:20050912125342-2189f-e56edb2dfc0bc82f822c05dd4e2d67722b5f4fde.gz
Diffstat (limited to 'emms.el')
-rw-r--r-- | emms.el | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -648,7 +648,10 @@ See emms-source-file.el for some examples." (defun emms-source-add (source &rest args) "Add the tracks of SOURCE at the current position in the playlist." - (apply 'emms-playlist-insert-source source args)) + (apply 'emms-playlist-insert-source source args) + (with-current-emms-playlist + (when (not emms-playlist-selected-marker) + (emms-playlist-select-first)))) ;;; User-defined playlists ;;; FIXME: These should be called "combined sources" |