From: Jason Rumney <jasonr@gnu.org>
Cc: Juanma Barranquero <lekktu@gmail.com>, rms@gnu.org, emacs-devel@gnu.org
Subject: Re: version comparison functions
Date: Fri, 26 Aug 2005 14:24:58 +0100 [thread overview]
Message-ID: <430F182A.3000909@gnu.org> (raw)
In-Reply-To: <m3irxsg98f.fsf@kfs-l.imdomain.dk>
Kim F. Storm wrote:
>..but now that it has happened, I think it makes sense for these
>functions to accept an optional argument to limit the number of
>version string elements to compare. E.g.
>
> (version= "22.0.50" "22.0.50.37") => nil
> (version= "22.0.50.36" "22.0.50.37") => nil
>
> (version= "22.0.50" "22.0.50.37" 3) => t
> (version= "22.0.50.36" "22.0.50.37" 3) => t
>
>
This may be useful as an addition to a general version number
comparison, but for Emacs version numbers, I think we should DTRT based
on the shorter of the two arguments:
(version= "22" "22.0.50.37") => t
Actually, I don't see why you need the second argument at all - won't it
always be emacs-version you want to compare with?
next prev parent reply other threads:[~2005-08-26 13:24 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-25 11:09 version comparison functions Juanma Barranquero
2005-08-26 9:54 ` Richard M. Stallman
2005-08-26 10:25 ` Juanma Barranquero
2005-08-26 12:42 ` Kim F. Storm
2005-08-26 13:24 ` Jason Rumney [this message]
2005-08-26 13:41 ` David Kastrup
2005-08-26 15:08 ` Michael Welsh Duggan
2005-08-28 2:44 ` Richard M. Stallman
2005-08-26 12:53 ` Jason Rumney
2005-08-26 22:34 ` Juanma Barranquero
2005-08-27 3:41 ` Richard M. Stallman
2005-08-26 13:36 ` Kim F. Storm
2005-08-26 15:47 ` Stefan Monnier
2005-08-26 22:36 ` Juanma Barranquero
2005-08-26 23:41 ` Vinicius Jose Latorre
2005-08-27 17:03 ` Juanma Barranquero
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=430F182A.3000909@gnu.org \
--to=jasonr@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=lekktu@gmail.com \
--cc=rms@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).