[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: version comparison functions

From: Jason Rumney
Subject: Re: version comparison functions
Date: Fri, 26 Aug 2005 14:24:58 +0100
User-agent: Mozilla Thunderbird 1.0.5 (Windows/20050711)

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" "")    => nil
      (version= "" "") => nil

      (version= "22.0.50" "" 3)    => t
      (version= "" "" 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" "") => 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?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]