[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: version> and version>=
From: |
Tassilo Horn |
Subject: |
Re: version> and version>= |
Date: |
Wed, 02 Feb 2022 15:15:37 +0100 |
User-agent: |
mu4e 1.7.6; emacs 29.0.50 |
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.
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.
- RE: [External] : version> and version>=, (continued)
- RE: [External] : version> and version>=, Drew Adams, 2022/02/01
- version> and version>=, goncholden, 2022/02/01
- Re: version> and version>=, Emanuel Berg, 2022/02/01
- Re: version> and version>=, Stefan Monnier, 2022/02/01
- version> and version>=, goncholden, 2022/02/02
- Re: version> and version>=, Tassilo Horn, 2022/02/02
- version> and version>=, goncholden, 2022/02/02
- Re: version> and version>=, Tassilo Horn, 2022/02/02
- version> and version>=, goncholden, 2022/02/02
- Re: version> and version>=, Tassilo Horn, 2022/02/02
- Re: version> and version>=,
Tassilo Horn <=
- version> and version>=, goncholden, 2022/02/02
- Re: version> and version>=, Tassilo Horn, 2022/02/02
- Re: version> and version>=, Eli Zaretskii, 2022/02/02
- Re: version> and version>=, Yuri Khan, 2022/02/02
- Re: version> and version>=, goncholden, 2022/02/02