From 699cf4d82a5f96cdfb9f0e0d7b8f3c4da834bc19 Mon Sep 17 00:00:00 2001 From: forcer Date: Mon, 12 Sep 2005 12:53:00 +0000 Subject: Select a track after adding, too, if none is selected. darcs-hash:20050912125342-2189f-e56edb2dfc0bc82f822c05dd4e2d67722b5f4fde.gz --- emms.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'emms.el') diff --git a/emms.el b/emms.el index 6986022..85fe0d8 100644 --- a/emms.el +++ b/emms.el @@ -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" -- cgit v1.2.3