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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 33576 in the body.
You can then email your comments to 33576 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#33576; Package emacs. (Sun, 02 Dec 2018 08:03:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Xu Chunyang <mail <at> xuchunyang.me>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 02 Dec 2018 08:03:01 GMT) Full text and rfc822 format available.

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

From: Xu Chunyang <mail <at> xuchunyang.me>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.1; Add version> and version>=
Date: Sun, 02 Dec 2018 16:02:35 +0800
Hi, Emacs Developers!

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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#33576; Package emacs. (Tue, 09 Jul 2019 23:46:02 GMT) Full text and rfc822 format available.

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




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 09 Jul 2019 23:46:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 33576 <at> debbugs.gnu.org and Xu Chunyang <mail <at> xuchunyang.me> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 09 Jul 2019 23:46:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 07 Aug 2019 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 263 days ago.

Previous Next


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