Mercurial > hg > xemacs-beta
diff lisp/version.el @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | 74fd4e045ea6 |
children | da8ed4261e83 |
line wrap: on
line diff
--- a/lisp/version.el Mon Aug 13 11:19:22 2007 +0200 +++ b/lisp/version.el Mon Aug 13 11:20:41 2007 +0200 @@ -37,19 +37,16 @@ (defconst emacs-version (purecopy - (format "%d.%d %s%s%s%s" + (format "%d.%d %s%s%s" emacs-major-version emacs-minor-version - (if emacs-patch-level - (format "(patch %d)" emacs-patch-level) + (if xemacs-codename + (concat "\"" xemacs-codename "\"") "") + " XEmacs Lucid" (if xemacs-betaname (concat " " xemacs-betaname) - "") - (if xemacs-codename - (concat " \"" xemacs-codename "\"") - "") - " XEmacs Lucid")) + ""))) "Version numbers of this version of XEmacs.") (if (featurep 'infodock) @@ -110,19 +107,16 @@ (t (insert version-string)))))) ;; from emacs-vers.el -(defun emacs-version>= (major &optional minor patch) - "Return true if the Emacs version is >= to the given MAJOR, MINOR, - and PATCH numbers. -The MAJOR version number argument is required, but the other arguments -argument are optional. Only the Non-nil arguments are used in the test." - (let ((emacs-patch (or emacs-patch-level emacs-beta-version -1))) - (cond ((> emacs-major-version major)) - ((< emacs-major-version major) nil) - ((null minor)) - ((> emacs-minor-version minor)) - ((< emacs-minor-version minor) nil) - ((null patch)) - ((>= emacs-patch patch))))) +(defun emacs-version>= (major &optional minor) + "Return true if the Emacs version is >= to the given MAJOR and MINOR numbers. +The MAJOR version number argument is required, but the MINOR version number +argument is optional. If the minor version number is not specified (or is the +symbol `nil') then only the major version numbers are considered in the test." + (if (null minor) + (>= emacs-major-version major) + (or (> emacs-major-version major) + (and (= emacs-major-version major) + (>= emacs-minor-version minor))))) ;;; We hope that this alias is easier for people to find. (define-function 'version 'emacs-version) @@ -131,9 +125,10 @@ ;; `what(1)' can extract from the executable or a core file. We don't ;; actually need this to be pointed to from lisp; pure objects can't ;; be GCed. -(purecopy (concat "\n@" "(#)" (emacs-version) - "\n@" "(#)" "Configuration: " - system-configuration "\n")) +(or (memq system-type '(windows-nt ms-dos)) + (purecopy (concat "\n@" "(#)" (emacs-version) + "\n@" "(#)" "Configuration: " + system-configuration "\n"))) ;;Local variables: ;;version-control: never