aboutsummaryrefslogtreecommitdiff
path: root/emms.el
diff options
context:
space:
mode:
authorforcer <forcer>2005-09-12 12:53:00 +0000
committerforcer <mwolson@gnu.org>2005-09-12 12:53:00 +0000
commit699cf4d82a5f96cdfb9f0e0d7b8f3c4da834bc19 (patch)
tree630604a8ce44b6f255d214a4623acb93a10cd347 /emms.el
parent58a13760b87d70587eb92cdb415779ad8fd34858 (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.el5
1 files changed, 4 insertions, 1 deletions
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"