mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
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.
This commit is contained in:
parent
8675f9c8b8
commit
22b2207471
8 changed files with 38 additions and 23 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue