help-gnu-emacs
[Top][All Lists]
Advanced

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

version> and version>=


From: goncholden
Subject: version> and version>=
Date: Wed, 02 Feb 2022 14:27:37 +0000

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Wednesday, February 2nd, 2022 at 2:15 PM, Tassilo Horn <tsdh@gnu.org> wrote:

> goncholden goncholden@protonmail.com writes:
>
> > > `emacs-version' is a string, 28.0 is a float. You cannot compare them. 
> > > Stefan suggested to use` emacs-major-version' with 28 (both
> > >
> > > integers) instead.
> >
> > It would be convenient if there was a function that could handle
> >
> > floats, so that one can condition not just on a major version, but
> >
> > upon the complete version number.
>
> As said in my other mail, floats are not good for this because in math,
> 1.2 is greater than 1.10 but with versions, 1.10 is greater than 1.2.
> See my other mail: if you really need to check major, minor, and maybe
> even micro version, then use `version<' with the version strings.

I missed that, you are correct then.

> Bye,
> Tassilo


> PS: Could you please teach your mail client not to remove the Re: from
> the subject of replies? Every reply of yours looks like a new
> thread on first sight.

Ok, I thought the Re: should not be there.




reply via email to

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