[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [emms-help] Experiment with speeding up Emms
From: |
Jorgen Schaefer |
Subject: |
Re: [emms-help] Experiment with speeding up Emms |
Date: |
Wed, 18 Oct 2006 22:02:34 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
Yoni Rabkin Katzenell <address@hidden> writes:
> If it helps anyone to locate where to make the changes:
>
> $:~/elisp/emms$ darcs whatsnew
> {
> hunk ./emms-info-mp3info.el 79
> - (string-match "\\.[Mm][Pp]3\\'" (emms-track-name track)))
> + (string-match "\.\(?:\(?:M[Pp]\|mp\)3\)" (emms-track-name
> track)))
> hunk ./emms-info-ogginfo.el 50
> - (string-match "\\.[Oo][Gg][Gg]\\'" (emms-track-name track)))
> + (string-match "\.\(?:O\(?:GG\|gg\)\|ogg\)" (emms-track-name
> track)))
> }
These regular expressions won't match many file names, which
explains why you notice the speedup. You need to escape the
parentheses twice, once for the string, and once for the regular
expression engine.
I.e.
"\\.\\(?:\\(?:M[Pp]\\|mp\\)3\\)"
"\\.\\(?:O\\(?:GG\\|gg\\)\\|ogg\\)"
Sorry for not noticing this when you asked on the channel.
Regards,
-- Jorgen
--
((email . "address@hidden") (www . "http://www.forcix.cx/")
(gpg . "1024D/028AF63C") (irc . "nick forcer on IRCnet"))