"Andy" == Andy Piper <andyp(a)parallax.co.uk> writes:
Andy> I like this. But when I suggested it earlier the complaint was
Andy> that 21.x.x wasn't a floating point number and therefore made
Andy> version comparison difficult. Maybe there should be some extra
Andy> functions - emacs-version-later-than or something.
FWIW, <
http://www.cs.utah.edu/~eeide/emacs/emacs-vers.el.gz> provides one with
the following predicates:
emacs-type-eq
emacs-version= emacs-version> emacs-version>=
emacs-version/= emacs-version< emacs-version<=
emacs-minor-version= emacs-minor-version> emacs-minor-version>=
emacs-minor-version/= emacs-minor-version< emacs-minor-version<=
With compile-time inlining and optional compile-time evaluation to boot.
Eric.
--
-------------------------------------------------------------------------------
Eric Eide <eeide(a)cs.utah.edu> . University of Utah Dept. of Computer Science
http://www.cs.utah.edu/~eeide . +1 (801) 585-5512 voice, +1 (801) 581-5843 FAX