[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ELPA] New package: listen
From: |
Andreas Schwab |
Subject: |
Re: [ELPA] New package: listen |
Date: |
Sun, 25 Feb 2024 15:17:11 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
On Feb 25 2024, Adam Porter wrote:
>> @@ -942,10 +941,10 @@ extension.
>> Return one of symbols `vorbis', `opus', `flac', or `mp3'."
>> (let ((case-fold-search t))
>> - (cond ((string-match ".ogg$" filename) 'vorbis)
>> - ((string-match ".opus$" filename) 'opus)
>> - ((string-match ".flac$" filename) 'flac)
>> - ((string-match ".mp3$" filename) 'mp3)
>> + (cond ((string-match ".ogg\\'" filename) 'vorbis)
>> + ((string-match ".opus\\'" filename) 'opus)
>> + ((string-match ".flac\\'" filename) 'flac)
>> + ((string-match ".mp3\\'" filename) 'mp3)
>> (t nil))))
>
> According to the Elisp manual: "When matching a string instead of a
> buffer, ‘$’ matches at the end of the string or before a newline
> character." So it appears to be correct here
It should only match at the end of the string, not before a newline.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
- Re: [ELPA] New package: listen, (continued)
- RE: [External] : Re: [ELPA] New package: listen, Drew Adams, 2024/02/26
- Re: [External] : Re: [ELPA] New package: listen, Philip Kaludercic, 2024/02/26
- RE: [External] : Re: [ELPA] New package: listen, Drew Adams, 2024/02/26
- Re: [External] : Re: [ELPA] New package: listen, Adam Porter, 2024/02/26
- RE: [External] : Re: [ELPA] New package: listen, Drew Adams, 2024/02/26
- Re: [External] : Re: [ELPA] New package: listen, Stephen Berman, 2024/02/26
- Re: [ELPA] New package: listen,
Andreas Schwab <=
- Re: [ELPA] New package: listen, Adam Porter, 2024/02/25
- Re: [ELPA] New package: listen, Philip Kaludercic, 2024/02/26