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

[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 14:38:35 +0100
User-agent: mu4e 1.7.6; emacs 29.0.50

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



reply via email to

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