From: Michaƫl Cadilhac Date: Fri, 17 Aug 2007 10:10:11 +0000 (+0000) Subject: (report-emacs-bug): Remove the last number of `emacs-version', use the X-Git-Tag: emacs-pretest-23.0.90~11473 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=30cc206bf35a1b3bf76753bee1c06c390de4f1a4;p=emacs.git (report-emacs-bug): Remove the last number of `emacs-version', use the topic prefix ``version; ''. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 974b1a62f63..b169be42fb1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2007-08-17 Micha,Ak(Bl Cadilhac + + * mail/emacsbug.el (report-emacs-bug): Remove the last number of + `emacs-version', use the topic prefix ``version; ''. + 2007-08-17 T. V. Raman (tiny change) * completion.el (symbol-under-point, symbol-before-point) diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el index 8a11dc90cc4..89ac6dea0bb 100644 --- a/lisp/mail/emacsbug.el +++ b/lisp/mail/emacsbug.el @@ -75,7 +75,8 @@ Prompts for bug subject. Leaves you in a mail buffer." (interactive (reverse (list (recent-keys) (read-string "Bug Subject: ")))) ;; The syntax `version;' is preferred to `[version]' because the ;; latter could be mistakenly stripped by mailing software. - (setq topic (concat "Bug: " emacs-version "; " topic)) + (when (string-match "^\\(\\([.0-9]+\\)*\\)\\.[0-9]+$" emacs-version) + (setq topic (concat (match-string 1 emacs-version) "; " topic))) ;; If there are four numbers in emacs-version, this is a pretest ;; version. (let* ((pretest-p (string-match "\\..*\\..*\\." emacs-version))