diff options
| author | Bozhidar Batsov | 2013-11-04 16:09:36 +0200 |
|---|---|---|
| committer | Bozhidar Batsov | 2013-11-04 16:09:36 +0200 |
| commit | 46b0a07f2c3c16b7dc3d7ba2e73ebe9b26b3b039 (patch) | |
| tree | 447fbd7c83c1cbb96d69e0d5e381c327558fe1d0 | |
| parent | d8c4f18a213a29a61c3a16e44261a3912acf1ca2 (diff) | |
| download | emacs-46b0a07f2c3c16b7dc3d7ba2e73ebe9b26b3b039.tar.gz emacs-46b0a07f2c3c16b7dc3d7ba2e73ebe9b26b3b039.zip | |
* lisp/subr.el (version<, version<=, version=):
Update docstrings with information for snapshot versions.
| -rw-r--r-- | lisp/subr.el | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index 05562117a51..6bcbe6b9687 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -4672,19 +4672,18 @@ If all LST elements are zeros or LST is nil, return zero." | |||
| 4672 | Note that version string \"1\" is equal to \"1.0\", \"1.0.0\", \"1.0.0.0\", | 4672 | Note that version string \"1\" is equal to \"1.0\", \"1.0.0\", \"1.0.0.0\", |
| 4673 | etc. That is, the trailing \".0\"s are insignificant. Also, version | 4673 | etc. That is, the trailing \".0\"s are insignificant. Also, version |
| 4674 | string \"1\" is higher (newer) than \"1pre\", which is higher than \"1beta\", | 4674 | string \"1\" is higher (newer) than \"1pre\", which is higher than \"1beta\", |
| 4675 | which is higher than \"1alpha\". Also, \"-CVS\" and \"-NNN\" are treated | 4675 | which is higher than \"1alpha\", which is higher than \"1snapshot\". |
| 4676 | as alpha versions." | 4676 | Also, \"-GIT\", \"-CVS\" and \"-NNN\" are treated as snapshot versions." |
| 4677 | (version-list-< (version-to-list v1) (version-to-list v2))) | 4677 | (version-list-< (version-to-list v1) (version-to-list v2))) |
| 4678 | 4678 | ||
| 4679 | |||
| 4680 | (defun version<= (v1 v2) | 4679 | (defun version<= (v1 v2) |
| 4681 | "Return t if version V1 is lower (older) than or equal to V2. | 4680 | "Return t if version V1 is lower (older) than or equal to V2. |
| 4682 | 4681 | ||
| 4683 | Note that version string \"1\" is equal to \"1.0\", \"1.0.0\", \"1.0.0.0\", | 4682 | Note that version string \"1\" is equal to \"1.0\", \"1.0.0\", \"1.0.0.0\", |
| 4684 | etc. That is, the trailing \".0\"s are insignificant. Also, version | 4683 | etc. That is, the trailing \".0\"s are insignificant. Also, version |
| 4685 | string \"1\" is higher (newer) than \"1pre\", which is higher than \"1beta\", | 4684 | string \"1\" is higher (newer) than \"1pre\", which is higher than \"1beta\", |
| 4686 | which is higher than \"1alpha\". Also, \"-CVS\" and \"-NNN\" are treated | 4685 | which is higher than \"1alpha\", which is higher than \"1snapshot\". |
| 4687 | as alpha versions." | 4686 | Also, \"-GIT\", \"-CVS\" and \"-NNN\" are treated as snapshot versions." |
| 4688 | (version-list-<= (version-to-list v1) (version-to-list v2))) | 4687 | (version-list-<= (version-to-list v1) (version-to-list v2))) |
| 4689 | 4688 | ||
| 4690 | (defun version= (v1 v2) | 4689 | (defun version= (v1 v2) |
| @@ -4693,8 +4692,8 @@ as alpha versions." | |||
| 4693 | Note that version string \"1\" is equal to \"1.0\", \"1.0.0\", \"1.0.0.0\", | 4692 | Note that version string \"1\" is equal to \"1.0\", \"1.0.0\", \"1.0.0.0\", |
| 4694 | etc. That is, the trailing \".0\"s are insignificant. Also, version | 4693 | etc. That is, the trailing \".0\"s are insignificant. Also, version |
| 4695 | string \"1\" is higher (newer) than \"1pre\", which is higher than \"1beta\", | 4694 | string \"1\" is higher (newer) than \"1pre\", which is higher than \"1beta\", |
| 4696 | which is higher than \"1alpha\". Also, \"-CVS\" and \"-NNN\" are treated | 4695 | which is higher than \"1alpha\", which is higher than \"1snapshot\". |
| 4697 | as alpha versions." | 4696 | Also, \"-GIT\", \"-CVS\" and \"-NNN\" are treated as snapshot versions." |
| 4698 | (version-list-= (version-to-list v1) (version-to-list v2))) | 4697 | (version-list-= (version-to-list v1) (version-to-list v2))) |
| 4699 | 4698 | ||
| 4700 | 4699 | ||