[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: |
Basil L. Contovounesios |
Subject: |
Re: [elpa] externals/counsel 14c696aa2d 1/2: Prefer Emacs 27 (TICKS . HZ) time values |
Date: |
Thu, 29 Feb 2024 17:13:13 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Stefan Monnier [2024-02-29 10:40 -0500] wrote:
>> +(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)
3. ...?
Did you have something else in mind?
What would you recommend?
Thanks,
--
Basil