comparison lisp/mail/emacsbug.el @ 82429:a026094590fd

(report-emacs-bug): Remove the last number of `emacs-version', use the topic prefix ``version; ''.
author Michaël Cadilhac <michael.cadilhac@lrde.org>
date Fri, 17 Aug 2007 10:10:00 +0000
parents 5d46134ea7dd
children e460d01bb038
comparison
equal deleted inserted replaced
82428:8e687f7c8e5a 82429:a026094590fd
73 ;; This strange form ensures that (recent-keys) is the value before 73 ;; This strange form ensures that (recent-keys) is the value before
74 ;; the bug subject string is read. 74 ;; the bug subject string is read.
75 (interactive (reverse (list (recent-keys) (read-string "Bug Subject: ")))) 75 (interactive (reverse (list (recent-keys) (read-string "Bug Subject: "))))
76 ;; The syntax `version;' is preferred to `[version]' because the 76 ;; The syntax `version;' is preferred to `[version]' because the
77 ;; latter could be mistakenly stripped by mailing software. 77 ;; latter could be mistakenly stripped by mailing software.
78 (setq topic (concat "Bug: " emacs-version "; " topic)) 78 (when (string-match "^\\(\\([.0-9]+\\)*\\)\\.[0-9]+$" emacs-version)
79 (setq topic (concat (match-string 1 emacs-version) "; " topic)))
79 ;; If there are four numbers in emacs-version, this is a pretest 80 ;; If there are four numbers in emacs-version, this is a pretest
80 ;; version. 81 ;; version.
81 (let* ((pretest-p (string-match "\\..*\\..*\\." emacs-version)) 82 (let* ((pretest-p (string-match "\\..*\\..*\\." emacs-version))
82 (from-buffer (current-buffer)) 83 (from-buffer (current-buffer))
83 (reporting-address (if pretest-p 84 (reporting-address (if pretest-p