[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emms-help] substr doesn't work on sequences (in XEmacs)
From: |
Angus Lees |
Subject: |
[emms-help] substr doesn't work on sequences (in XEmacs) |
Date: |
Sun, 28 Aug 2005 16:27:57 +0100 |
User-agent: |
Wanderlust/2.14.0 (Africa) XEmacs/21.4 (Jumbo Shrimp) |
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] substr doesn't work on sequences (in XEmacs),
Angus Lees <=