GNU bug report logs -
#25590
Remove build number from emacs-version variable
Previous Next
Reported by: Glenn Morris <rgm <at> gnu.org>
Date: Tue, 31 Jan 2017 17:57:02 UTC
Severity: wishlist
Found in version 25.1
Fixed in version 26.1
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #27 received at 25590 <at> debbugs.gnu.org (full text, mbox):
I forgot to include the elpa piece.
--- i/packages/debbugs/debbugs-gnu.el
+++ w/packages/debbugs/debbugs-gnu.el
@@ -1,6 +1,6 @@
;;; debbugs-gnu.el --- interface for the GNU bug tracker -*- lexical-binding:t -*-
-;; Copyright (C) 2011-2016 Free Software Foundation, Inc.
+;; Copyright (C) 2011-2017 Free Software Foundation, Inc.
;; Author: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
;; Michael Albinus <michael.albinus <at> gmx.org>
@@ -1501,14 +1501,20 @@ removed instead."
"Version: "
(cond
;; Emacs development versions.
- ((string-match
- "^\\([0-9]+\\)\\.\\([0-9]+\\)\\.\\([0-9]+\\)\\." emacs-version)
+ ((if (boundp 'emacs-build-number)
+ (string-match
+ "^\\([0-9]+\\)\\.\\([0-9]+\\)\\.\\([0-9]+\\)" emacs-version)
+ (string-match
+ "^\\([0-9]+\\)\\.\\([0-9]+\\)\\.\\([0-9]+\\)\\." emacs-version))
(format "%s.%d"
(match-string 1 emacs-version)
(1+ (string-to-number (match-string 2 emacs-version)))))
;; Emacs release versions.
- ((string-match
- "^\\([0-9]+\\)\\.\\([0-9]+\\)\\.\\([0-9]+\\)$" emacs-version)
+ ((if (boundp 'emacs-build-number)
+ (string-match
+ "^\\([0-9]+\\)\\.\\([0-9]+\\)$" emacs-version)
+ (string-match
+ "^\\([0-9]+\\)\\.\\([0-9]+\\)\\.\\([0-9]+\\)$" emacs-version))
(format "%s.%s"
(match-string 1 emacs-version)
(match-string 2 emacs-version)))
This bug report was last modified 8 years and 93 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.