emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master d0c77a1: Remove some assumptions about timestamp format


From: Michael Albinus
Subject: Re: master d0c77a1: Remove some assumptions about timestamp format
Date: Fri, 28 Sep 2018 12:35:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Paul Eggert <address@hidden> writes:

> I installed the attached, which should be a win independently of what
> Tramp needs as it adds support for time-equal, infinite and NaN time
> values. I hope it's enough for Tramp too in that it can use a NaN (or
> an infinity) to represent a timestamp that a filesystem can't possibly
> have.

Thanks. Comments:

> address@hidden time-equal t1 t2

Shouldn't this be `time-equal-p', as we have already `time-less-p'?

> +This returns @code{t} if @var{t1} and @var{t2} are equal time values.
> +The result is @code{nil} if either argument is a NaN.

No. Tramp (and other functions) must check, whether a given time value
is the "don't know" value. Therefore,

(time-equal time-value 0.0e+NaN)

must return t, if time-value is a NaN. And what if either value is a
float infinity?

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]