GNU bug report logs - #33576
26.1; Add version> and version>=

Previous Next

Package: emacs;

Reported by: Xu Chunyang <mail <at> xuchunyang.me>

Date: Sun, 2 Dec 2018 08:03:01 UTC

Severity: wishlist

Tags: wontfix

Found in version 26.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 33576 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Xu Chunyang <mail <at> xuchunyang.me>
Cc: 33576 <at> debbugs.gnu.org
Subject: Re: bug#33576: 26.1; Add version> and version>=
Date: Wed, 10 Jul 2019 01:45:04 +0200
Xu Chunyang <mail <at> 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




This bug report was last modified 5 years and 315 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.