In XEmacs 21.4 (at least), substr doesn't work on sequences, you have
to use `subseq'
;; s/substring/subseq/
(defun emms-playlist-add (seq &optional idx)
"Add each track of the sequence SEQ to the current playlist.
Insert at IDX, which defaults to the end."
(let ((idx (or idx (length emms-playlist))))
(emms-playlist-set-playlist
(vconcat (subseq emms-playlist 0 idx)
(if emms-playlist-sort-added-tracks-p
(emms-playlist-sort-vector seq)
seq)
(subseq emms-playlist idx)))))
PS: it would be nice if emms-auto.el (or somewhere) also included
autoloads for a bunch of "constructed" functions, like the standard
emms-info-*, emms-source-* and emms-player-* definitions that come
with emms.
--
- Gus
_______________________________________________
Emms-help mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emms-help