diff options
author | forcer <forcer> | 2005-09-16 12:51:00 +0000 |
---|---|---|
committer | forcer <mwolson@gnu.org> | 2005-09-16 12:51:00 +0000 |
commit | 829d2f10fbde315aee63e187067f03a80a8ed5a4 (patch) | |
tree | ac4c6ee1351d6514c6d383fb66141eb93193b1bf | |
parent | 09a83a3d852966666ff7cfea8737f456ffd751dd (diff) |
Shuffle, sort and source-add don't move point anymore.
darcs-hash:20050916125153-2189f-11149468188ec76cafabb03f51edf7870824f07f.gz
-rw-r--r-- | emms.el | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -306,14 +306,16 @@ This function uses `emms-show-format' to format the current track." This uses `emms-playlist-shuffle-function'." (interactive) (with-current-emms-playlist - (funcall emms-playlist-shuffle-function))) + (save-excursion + (funcall emms-playlist-shuffle-function)))) (defun emms-sort () "Sort the current playlist. This uses `emms-playlist-shuffle-function'." (interactive) (with-current-emms-playlist - (funcall emms-playlist-sort-function))) + (save-excursion + (funcall emms-playlist-sort-function)))) (defun emms-toggle-repeat-playlist () "Toggle whether emms repeats the playlist after it is done. @@ -827,8 +829,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) (with-current-emms-playlist + (save-excursion + (goto-char (point-max)) + (apply 'emms-playlist-insert-source source args)) (when (or (not emms-playlist-selected-marker) (not (marker-position emms-playlist-selected-marker))) (emms-playlist-select-first)))) |