From: Michael Welsh Duggan <md5i@cs.cmu.edu>
Cc: Juanma Barranquero <lekktu@gmail.com>,
emacs-devel@gnu.org, rms@gnu.org, "Kim F. Storm" <storm@cua.dk>
Subject: Re: version comparison functions
Date: Fri, 26 Aug 2005 11:08:13 -0400 [thread overview]
Message-ID: <87br3k7n36.fsf@cs.cmu.edu> (raw)
In-Reply-To: <430F182A.3000909@gnu.org> (Jason Rumney's message of "Fri, 26 Aug 2005 14:24:58 +0100")
Jason Rumney <jasonr@gnu.org> writes:
> 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?
No. It might be the version of an emacs package (like tramp-version).
--
Michael Welsh Duggan
(md5i@cs.cmu.edu)
next prev parent reply other threads:[~2005-08-26 15:08 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
2005-08-26 13:41 ` David Kastrup
2005-08-26 15:08 ` Michael Welsh Duggan [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87br3k7n36.fsf@cs.cmu.edu \
--to=md5i@cs.cmu.edu \
--cc=emacs-devel@gnu.org \
--cc=lekktu@gmail.com \
--cc=rms@gnu.org \
--cc=storm@cua.dk \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.