Jason Rumney <[EMAIL PROTECTED]> 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 ([EMAIL PROTECTED]) _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel