Mercurial > emacs
comparison lisp/version.el @ 108601:786c4a4a3817
Handle --version reasonably in CANNOT_DUMP configuration.
* src/emacs.c (emacs_version, emacs_copyright): New string
variables.
(Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
(syms_of_emacs): Defvar them, and initialize them from the C
string variables.
(main): If initialization hasn't been done, print initial version
info from the C strings, instead of starting an interactive session.
* lisp/version.el (emacs-copyright, emacs-version): Don't define
here.
* configure.in: Look for version string in its new place.
author | Ken Raeburn <raeburn@raeburn.org> |
---|---|
date | Sat, 15 May 2010 17:11:37 -0400 |
parents | b4d27afff1bf |
children | 280c8ae2476d |
comparison
equal
deleted
inserted
replaced
108600:178b4c78d882 | 108601:786c4a4a3817 |
---|---|
26 | 26 |
27 ;; This file is loaded uncompiled when dumping Emacs. | 27 ;; This file is loaded uncompiled when dumping Emacs. |
28 ;; Doc-strings should adhere to the conventions of make-docfile. | 28 ;; Doc-strings should adhere to the conventions of make-docfile. |
29 | 29 |
30 ;;; Code: | 30 ;;; Code: |
31 | |
32 (defconst emacs-copyright "Copyright (C) 2010 Free Software Foundation, Inc." "\ | |
33 Short copyright string for this version of Emacs.") | |
34 | |
35 (defconst emacs-version "24.0.50" "\ | |
36 Version numbers of this version of Emacs.") | |
37 | 31 |
38 (defconst emacs-major-version (progn (string-match "^[0-9]+" emacs-version) (string-to-number (match-string 0 emacs-version))) "\ | 32 (defconst emacs-major-version (progn (string-match "^[0-9]+" emacs-version) (string-to-number (match-string 0 emacs-version))) "\ |
39 Major version number of this version of Emacs. | 33 Major version number of this version of Emacs. |
40 This variable first existed in version 19.23.") | 34 This variable first existed in version 19.23.") |
41 | 35 |