aboutsummaryrefslogtreecommitdiff
path: root/emms.el
diff options
context:
space:
mode:
authorforcer <forcer>2005-09-15 19:50:00 +0000
committerforcer <mwolson@gnu.org>2005-09-15 19:50:00 +0000
commitd5ee498a1c0d2fa545cc8165750d24b454af54d4 (patch)
tree80705dea8af5e4273f122ecebd5c0799ba079da5 /emms.el
parentf797263d20955756cef4047d71b9232ed3df6bdc (diff)
emms-source-add now checks for an as of yet unset marker, too.
darcs-hash:20050915195059-2189f-47156a6a913df1012caf07bc2b4b68309354334a.gz
Diffstat (limited to 'emms.el')
-rw-r--r--emms.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/emms.el b/emms.el
index 683e4ae..64881e6 100644
--- a/emms.el
+++ b/emms.el
@@ -793,7 +793,8 @@ See emms-source-file.el for some examples."
"Add the tracks of SOURCE at the current position in the playlist."
(apply 'emms-playlist-insert-source source args)
(with-current-emms-playlist
- (when (not emms-playlist-selected-marker)
+ (when (or (not emms-playlist-selected-marker)
+ (not (marker-position emms-playlist-selected-marker)))
(emms-playlist-select-first))))
;;; User-defined playlists