Function: version-to-list

Convert version string VER into a list of integers.

The version syntax is given by the following EBNF:

VERSION ::= NUMBER ( SEPARATOR NUMBER )*.

NUMBER ::= (0|1|2|3|4|5|6|7|8|9)+.

SEPARATOR ::= `version-separator' (which see)
| `version-regexp-alist' (which see).

The NUMBER part is optional if SEPARATOR is a match for an element
in `version-regexp-alist'.

Examples of valid version syntax:

1.0pre2 1.0.7.5 22.8beta3 0.9alpha1 6.9.30Beta

Examples of invalid version syntax:

1.0prepre2 1.0..7.5 22.8X3 alpha3.2 .5

Examples of version conversion:

Version String Version as a List of Integers
"1.0.7.5" (1 0 7 5)
"1.0pre2" (1 0 -1 2)
"1.0PRE2" (1 0 -1 2)
"22.8beta3" (22 8 -2 3)
"22.8Beta3" (22 8 -2 3)
"0.9alpha1" (0 9 -3 1)
"0.9AlphA1" (0 9 -3 1) "0.9alpha" (0 9 -3) See documentation for `version-separator' and `version-regexp-alist'.