[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 13:48:56 +0000 |
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday, February 2nd, 2022 at 1:38 PM, Tassilo Horn <tsdh@gnu.org> wrote:
> goncholden goncholden@protonmail.com writes:
>
> > > (< emacs-version 28.0)
> >
> > (< emacs-major-version 28)
> >
> > Stefan
> >
> > Am working on colouring comments according to whether the background
> >
> > is light or dark.
> >
> > But I am encountering
> >
> > if: Wrong type argument: number-or-marker-p, "27.2"
> >
> > Code:
> >
> > (if (>= emacs-version 28.0)
>
> `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.
>
> HTH,
> Tassilo
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.
- version> and version>=, goncholden, 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 <=
- 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, 2022/02/02
- 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