unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#33576: 26.1; Add version> and version>=
@ 2018-12-02  8:02 Xu Chunyang
  2019-07-09 23:45 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Xu Chunyang @ 2018-12-02  8:02 UTC (permalink / raw)
  To: 33576

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.





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#33576: 26.1; Add version> and version>=
  2018-12-02  8:02 bug#33576: 26.1; Add version> and version>= Xu Chunyang
@ 2019-07-09 23:45 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-09 23:45 UTC (permalink / raw)
  To: Xu Chunyang; +Cc: 33576

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-07-09 23:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-02  8:02 bug#33576: 26.1; Add version> and version>= Xu Chunyang
2019-07-09 23:45 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).