[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [emms-help] info-year and info-date
From: |
Rasmus Pank Roulund |
Subject: |
Re: [emms-help] info-year and info-date |
Date: |
Tue, 07 Nov 2017 10:37:40 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) |
Pierre Neidhardt <address@hidden> writes:
> Yoni Rabkin <address@hidden> writes:
>> Unfortunately, there is no easy way to do this.
>
> What about
>
> ("y" . ,(or (emms-track-get 'info-year) (emms-GET-YEAR-FROM-DATE
> (emms-track-get track 'info-date)))
>
> Where the upcase function might have to be implemented, although I got
> one on this mailing list recently.
Yeah, I think that is a good way, although I would fall back on info-year
and prefer info-date, if present (it is presumably more detailed). The
order could also be custom preference.
In any case, it might be preferable to move this to a separate function
‘emms-get-year’, say, and call that. It might look cleaner.
Thank Pierre and Yoni!
Rasmus
--
You people at the NSA are becoming my new best friends!