Mercurial > hg > xemacs-beta
diff lisp/version.el @ 50:ee648375d8d6 r19-16b91
Import from CVS: tag r19-16b91
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:56:41 +0200 |
parents | 56c54cf7c5b6 |
children | 461c7ba8286a |
line wrap: on
line diff
--- a/lisp/version.el Mon Aug 13 08:56:06 2007 +0200 +++ b/lisp/version.el Mon Aug 13 08:56:41 2007 +0200 @@ -23,34 +23,54 @@ ;; The following line is modified automatically ;; by loading inc-version.el, each time a new Emacs is dumped. -(defconst emacs-version "19.16" "\ -Version numbers of this version of Emacs.") +;; (defconst emacs-version "19.16" "\ +;; Version numbers of this version of Emacs.") -(setq emacs-version (purecopy (concat emacs-version " XEmacs Lucid (beta90)"))) +;; (setq emacs-version (purecopy (concat emacs-version " XEmacs Lucid (beta90)"))) -(defconst emacs-major-version - (progn (or (string-match "^[0-9]+" emacs-version) - (error "emacs-version unparsable")) - (string-to-int (match-string 0 emacs-version))) - "Major version number of this version of Emacs, as an integer. -Warning, this variable did not exist in Emacs versions earlier than: - FSF Emacs: 19.23 - XEmacs: 19.10") +;(defconst emacs-major-version +; (progn (or (string-match "^[0-9]+" emacs-version) +; (error "emacs-version unparsable")) +; (string-to-int (match-string 0 emacs-version))) +; "Major version number of this version of Emacs, as an integer. +;Warning, this variable did not exist in Emacs versions earlier than: +; FSF Emacs: 19.23 +; XEmacs: 19.10") -(defconst emacs-minor-version - (progn (or (string-match "^[0-9]+\\.\\([0-9]+\\)" emacs-version) - (error "emacs-version unparsable")) - (string-to-int (match-string 1 emacs-version))) - "Minor version number of this version of Emacs, as an integer. -Warning, this variable did not exist in Emacs versions earlier than: - FSF Emacs: 19.23 - XEmacs: 19.10") +;(defconst emacs-minor-version +; (progn (or (string-match "^[0-9]+\\.\\([0-9]+\\)" emacs-version) +; (error "emacs-version unparsable")) +; (string-to-int (match-string 1 emacs-version))) +; "Minor version number of this version of Emacs, as an integer. +;Warning, this variable did not exist in Emacs versions earlier than: +; FSF Emacs: 19.23 +; XEmacs: 19.10") (defconst emacs-build-time (current-time-string) "\ Time at which Emacs was dumped out.") (defconst emacs-build-system (system-name)) +(defconst xemacs-betaname "(beta91)" + "Non-nil when this is a test (beta) version of XEmacs. +Warning, this variable did not exist in XEmacs versions prior to 20.3") + +(defconst xemacs-codename "" + "This only works in XEmacs 20.3 or greater.") + +(defconst emacs-version + (purecopy + (format "%d.%d \"%s\"%s%s" + emacs-major-version + emacs-minor-version + xemacs-codename + " XEmacs Lucid" + (if xemacs-betaname + (concat " " xemacs-betaname) + ""))) + "Version numbers of this version of XEmacs.") + + (defun emacs-version (&optional here) "\ Return string describing the version of Emacs that is running. If optional argument HERE is non-nil, insert string at point.