[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [elpa] externals/counsel 14c696aa2d 1/2: Prefer Emacs 27 (TICKS . HZ
From: |
Stefan Monnier |
Subject: |
Re: [elpa] externals/counsel 14c696aa2d 1/2: Prefer Emacs 27 (TICKS . HZ) time values |
Date: |
Thu, 29 Feb 2024 12:54:59 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
>>> +(defalias 'counsel--async-filter-update-time
>>> + (if (fboundp 'time-convert)
>>> + ;; Preferred (TICKS . HZ) format since Emacs 27.1.
>>> + (lambda () (cons counsel-async-filter-update-time 1000000))
>>
>> Why not use `time-convert` rather than hardcode the internal representation?
>
> It wasn't clear to me that any of these options is better:
>
> 1. (time-convert (/ counsel-async-filter-update-time 1e6) t)
> 2. (time-convert (cons counsel-async-filter-update-time 1000000) t)
Yeah, I guess all alternatives are about as good/bad.
Nevermind,
Stefan