diff options
| author | Vinicius Jose Latorre | 2010-11-01 23:50:22 -0200 |
|---|---|---|
| committer | Vinicius Jose Latorre | 2010-11-01 23:50:22 -0200 |
| commit | b29f5b7bf279a5e49bb3419ec6fec1aebd1162cc (patch) | |
| tree | 200c96e193ef8c51ff17ff330e9dec8a808120a0 | |
| parent | 2960c86fdef8e5e03249be8ae1de4d4be3737a70 (diff) | |
| download | emacs-b29f5b7bf279a5e49bb3419ec6fec1aebd1162cc.tar.gz emacs-b29f5b7bf279a5e49bb3419ec6fec1aebd1162cc.zip | |
Adjust doc.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/subr.el | 20 |
2 files changed, 16 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 77b7dd2e6d5..120b37a6f25 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2010-11-01 Vinicius Jose Latorre <viniciusjl@ig.com.br> | ||
| 2 | |||
| 3 | * subr.el (version-separator, version-regexp-alist): Remove '*' | ||
| 4 | from docstring. | ||
| 5 | (version-list-<=, version<=, version=): Doc fix. | ||
| 6 | |||
| 1 | 2010-11-01 Kenichi Handa <handa@m17n.org> | 7 | 2010-11-01 Kenichi Handa <handa@m17n.org> |
| 2 | 8 | ||
| 3 | * faces.el (glyphless-char): Inherit underline for tty. | 9 | * faces.el (glyphless-char): Inherit underline for tty. |
diff --git a/lisp/subr.el b/lisp/subr.el index 8c42e5bd66a..c9300ad9711 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -3593,18 +3593,18 @@ convenience wrapper around `make-progress-reporter' and friends. | |||
| 3593 | ;;;; Comparing version strings. | 3593 | ;;;; Comparing version strings. |
| 3594 | 3594 | ||
| 3595 | (defconst version-separator "." | 3595 | (defconst version-separator "." |
| 3596 | "*Specify the string used to separate the version elements. | 3596 | "Specify the string used to separate the version elements. |
| 3597 | 3597 | ||
| 3598 | Usually the separator is \".\", but it can be any other string.") | 3598 | Usually the separator is \".\", but it can be any other string.") |
| 3599 | 3599 | ||
| 3600 | 3600 | ||
| 3601 | (defconst version-regexp-alist | 3601 | (defconst version-regexp-alist |
| 3602 | '(("^[-_+ ]?alpha$" . -3) | 3602 | '(("^[-_+ ]?alpha$" . -3) |
| 3603 | ("^[-_+]$" . -3) ; treat "1.2.3-20050920" and "1.2-3" as alpha releases | 3603 | ("^[-_+]$" . -3) ; treat "1.2.3-20050920" and "1.2-3" as alpha releases |
| 3604 | ("^[-_+ ]cvs$" . -3) ; treat "1.2.3-CVS" as alpha release | 3604 | ("^[-_+ ]cvs$" . -3) ; treat "1.2.3-CVS" as alpha release |
| 3605 | ("^[-_+ ]?beta$" . -2) | 3605 | ("^[-_+ ]?beta$" . -2) |
| 3606 | ("^[-_+ ]?\\(pre\\|rcc\\)$" . -1)) | 3606 | ("^[-_+ ]?\\(pre\\|rcc\\)$" . -1)) |
| 3607 | "*Specify association between non-numeric version and its priority. | 3607 | "Specify association between non-numeric version and its priority. |
| 3608 | 3608 | ||
| 3609 | This association is used to handle version string like \"1.0pre2\", | 3609 | This association is used to handle version string like \"1.0pre2\", |
| 3610 | \"0.9alpha1\", etc. It's used by `version-to-list' (which see) to convert the | 3610 | \"0.9alpha1\", etc. It's used by `version-to-list' (which see) to convert the |
| @@ -3698,7 +3698,7 @@ See documentation for `version-separator' and `version-regexp-alist'." | |||
| 3698 | (setq al (cdr al))) | 3698 | (setq al (cdr al))) |
| 3699 | (cond (al | 3699 | (cond (al |
| 3700 | (push (cdar al) lst)) | 3700 | (push (cdar al) lst)) |
| 3701 | ;; Convert 22.3a to 22.3.1. | 3701 | ;; Convert 22.3a to 22.3.1, 22.3b to 22.3.2, etc. |
| 3702 | ((string-match "^[-_+ ]?\\([a-zA-Z]\\)$" s) | 3702 | ((string-match "^[-_+ ]?\\([a-zA-Z]\\)$" s) |
| 3703 | (push (- (aref (downcase (match-string 1 s)) 0) ?a -1) | 3703 | (push (- (aref (downcase (match-string 1 s)) 0) ?a -1) |
| 3704 | lst)) | 3704 | lst)) |
| @@ -3754,7 +3754,7 @@ turn is higher than (1 -2), which is higher than (1 -3)." | |||
| 3754 | "Return t if L1, a list specification of a version, is lower or equal to L2. | 3754 | "Return t if L1, a list specification of a version, is lower or equal to L2. |
| 3755 | 3755 | ||
| 3756 | Note that integer list (1) is equal to (1 0), (1 0 0), (1 0 0 0), | 3756 | Note that integer list (1) is equal to (1 0), (1 0 0), (1 0 0 0), |
| 3757 | etc. That is, the trailing zeroes are irrelevant. Also, integer | 3757 | etc. That is, the trailing zeroes are insignificant. Also, integer |
| 3758 | list (1) is greater than (1 -1) which is greater than (1 -2) | 3758 | list (1) is greater than (1 -1) which is greater than (1 -2) |
| 3759 | which is greater than (1 -3)." | 3759 | which is greater than (1 -3)." |
| 3760 | (while (and l1 l2 (= (car l1) (car l2))) | 3760 | (while (and l1 l2 (= (car l1) (car l2))) |
| @@ -3796,7 +3796,7 @@ which is higher than \"1alpha\"." | |||
| 3796 | "Return t if version V1 is lower (older) than or equal to V2. | 3796 | "Return t if version V1 is lower (older) than or equal to V2. |
| 3797 | 3797 | ||
| 3798 | Note that version string \"1\" is equal to \"1.0\", \"1.0.0\", \"1.0.0.0\", | 3798 | Note that version string \"1\" is equal to \"1.0\", \"1.0.0\", \"1.0.0.0\", |
| 3799 | etc. That is, the trailing \".0\"s are insignificant.. Also, version | 3799 | etc. That is, the trailing \".0\"s are insignificant. Also, version |
| 3800 | string \"1\" is higher (newer) than \"1pre\", which is higher than \"1beta\", | 3800 | string \"1\" is higher (newer) than \"1pre\", which is higher than \"1beta\", |
| 3801 | which is higher than \"1alpha\"." | 3801 | which is higher than \"1alpha\"." |
| 3802 | (version-list-<= (version-to-list v1) (version-to-list v2))) | 3802 | (version-list-<= (version-to-list v1) (version-to-list v2))) |
| @@ -3805,7 +3805,7 @@ which is higher than \"1alpha\"." | |||
| 3805 | "Return t if version V1 is equal to V2. | 3805 | "Return t if version V1 is equal to V2. |
| 3806 | 3806 | ||
| 3807 | Note that version string \"1\" is equal to \"1.0\", \"1.0.0\", \"1.0.0.0\", | 3807 | Note that version string \"1\" is equal to \"1.0\", \"1.0.0\", \"1.0.0.0\", |
| 3808 | etc. That is, the trailing \".0\"s are insignificant.. Also, version | 3808 | etc. That is, the trailing \".0\"s are insignificant. Also, version |
| 3809 | string \"1\" is higher (newer) than \"1pre\", which is higher than \"1beta\", | 3809 | string \"1\" is higher (newer) than \"1pre\", which is higher than \"1beta\", |
| 3810 | which is higher than \"1alpha\"." | 3810 | which is higher than \"1alpha\"." |
| 3811 | (version-list-= (version-to-list v1) (version-to-list v2))) | 3811 | (version-list-= (version-to-list v1) (version-to-list v2))) |