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

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

bug#33576: 26.1; Add version> and version>=


From: Lars Ingebrigtsen
Subject: bug#33576: 26.1; Add version> and version>=
Date: Wed, 10 Jul 2019 01:45:04 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Xu Chunyang <mail@xuchunyang.me> writes:

> Can you please add version> and version>= ?
>
>   (defun version> (v1 v2) (version< v2 v1))
>   (defun version>= (v1 v2) (version<= v2 v1))
>
> I prefer
>
>   (version>= emacs-version "26.1")
>
> over
>
>   (version<= "26.1" emacs-version)
>
> Image that we provide < but without >. It would be painful.

That would indeed be painful, but for these very specialised comparison
functions, I'm not sure it's worth it to add (and document) them.  So
I'm closing this bug report; if somebody disagrees, feel free to reopen.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

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