diff options
author | Glenn Morris <rgm@gnu.org> | 2017-02-17 20:15:21 -0500 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2017-02-17 20:15:21 -0500 |
commit | 22b2207471807bda86534b4faf1a29b3a6447536 (patch) | |
tree | 79f65cff576fe028b6556fc2763579a36610d7e7 /lisp/version.el | |
parent | 8675f9c8b8a002530d0c4e0263bb3d4cf3a649fa (diff) | |
download | emacs-22b2207471807bda86534b4faf1a29b3a6447536.tar.gz |
Remove the build number from emacs-version variable
It's a largely internal detail that can confuse users. (Bug#25590)
* lisp/version.el (emacs-build-number): New constant.
(emacs-version): Use emacs-build-number.
* lisp/loadup.el (top-level): When dumping, increment
emacs-build-number rather than emacs-version.
* src/emacs.c (emacs-version): Doc fix.
* doc/lispref/intro.texi (Version Info): Update emacs-version details.
Mention emacs-build-number.
* lisp/gnus/gnus-util.el (gnus-emacs-version):
* lisp/mail/emacsbug.el (report-emacs-bug):
* admin/admin.el (set-version): Update for emacs-version change.
; * etc/NEWS: Mention this.
Diffstat (limited to 'lisp/version.el')
-rw-r--r-- | lisp/version.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/version.el b/lisp/version.el index 99ab3519a7e..ea6f1b46948 100644 --- a/lisp/version.el +++ b/lisp/version.el @@ -44,6 +44,12 @@ This variable first existed in version 19.23.") (defconst emacs-build-time (if emacs-build-system (current-time)) "Time at which Emacs was dumped out, or nil if not available.") +(defconst emacs-build-number 1 ; loadup.el may increment this + "The build number of this version of Emacs. +This is an integer that increments each time Emacs is built in a given +directory (without cleaning). This is likely to only be relevant when +developing Emacs.") + (defvar motif-version-string) (defvar gtk-version-string) (defvar ns-version-string) @@ -56,8 +62,9 @@ Don't use this function in programs to choose actions according to the system configuration; look at `system-configuration' instead." (interactive "P") (let ((version-string - (format "GNU Emacs %s (%s%s%s%s)%s" + (format "GNU Emacs %s (build %s, %s%s%s%s)%s" emacs-version + emacs-build-number system-configuration (cond ((featurep 'motif) (concat ", " (substring motif-version-string 4))) |