Function: version=

version= is a byte-compiled function defined in subr.el.gz.

Signature

(version= V1 V2)

Documentation

Return t if version V1 is equal to V2.

Note that version string "1" is equal to "1.0", "1.0.0", "1.0.0.0", etc. That is, the trailing ".0"s are insignificant. Also, version string "1" is higher (newer) than "1pre", which is higher than "1beta", which is higher than "1alpha", which is higher than "1snapshot". Also, "-GIT", "-CVS" and "-NNN" are treated as snapshot versions.

Source Code

;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defun version= (v1 v2)
  "Return t if version V1 is equal to V2.

Note that version string \"1\" is equal to \"1.0\", \"1.0.0\", \"1.0.0.0\",
etc.  That is, the trailing \".0\"s are insignificant.  Also, version
string \"1\" is higher (newer) than \"1pre\", which is higher than \"1beta\",
which is higher than \"1alpha\", which is higher than \"1snapshot\".
Also, \"-GIT\", \"-CVS\" and \"-NNN\" are treated as snapshot versions."
  (version-list-= (version-to-list v1) (version-to-list v2)))