Commit ef77dde4 authored by Michaël Cadilhac's avatar Michaël Cadilhac
Browse files

(report-emacs-bug): Make MS-DOS a special case (there's no build number).

parent 5332117f
......@@ -7,7 +7,8 @@
2007-08-17 Micha,Ak(Bl Cadilhac <michael@cadilhac.name>
* mail/emacsbug.el (report-emacs-bug): Remove the last number of
`emacs-version', use the topic prefix ``version; ''.
`emacs-version', use the topic prefix ``version; ''. Make MS-DOS
a special case (there's no build number).
2007-08-17 T. V. Raman <raman@users.sf.net> (tiny change)
......
......@@ -75,11 +75,16 @@ 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.
(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))
(if (eq system-type 'ms-dos)
(setq topic (concat 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 (three for MS-DOS),
;; this is a pretest version.
(let* ((pretest-p (string-match (if (eq system-type 'ms-dos)
"\\..*\\."
"\\..*\\..*\\.")
emacs-version))
(from-buffer (current-buffer))
(reporting-address (if pretest-p
report-emacs-bug-pretest-address
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment