aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichaël Cadilhac2007-08-17 19:38:58 +0000
committerMichaël Cadilhac2007-08-17 19:38:58 +0000
commitef77dde4c30ab115bc3d4863cf9760376000004b (patch)
tree823849f3151333b4839a881d3e650164f48055a6
parent5332117f2c129f678dc35896a33c5c514ced799b (diff)
downloademacs-ef77dde4c30ab115bc3d4863cf9760376000004b.tar.gz
emacs-ef77dde4c30ab115bc3d4863cf9760376000004b.zip
(report-emacs-bug): Make MS-DOS a special case (there's no build number).
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/mail/emacsbug.el15
2 files changed, 12 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 838aa3709f5..c9452fde9db 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -7,7 +7,8 @@
72007-08-17 Micha,Ak(Bl Cadilhac <michael@cadilhac.name> 72007-08-17 Micha,Ak(Bl Cadilhac <michael@cadilhac.name>
8 8
9 * mail/emacsbug.el (report-emacs-bug): Remove the last number of 9 * mail/emacsbug.el (report-emacs-bug): Remove the last number of
10 `emacs-version', use the topic prefix ``version; ''. 10 `emacs-version', use the topic prefix ``version; ''. Make MS-DOS
11 a special case (there's no build number).
11 12
122007-08-17 T. V. Raman <raman@users.sf.net> (tiny change) 132007-08-17 T. V. Raman <raman@users.sf.net> (tiny change)
13 14
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el
index 89ac6dea0bb..70c976a154d 100644
--- a/lisp/mail/emacsbug.el
+++ b/lisp/mail/emacsbug.el
@@ -75,11 +75,16 @@ Prompts for bug subject. Leaves you in a mail buffer."
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 (when (string-match "^\\(\\([.0-9]+\\)*\\)\\.[0-9]+$" emacs-version) 78 (if (eq system-type 'ms-dos)
79 (setq topic (concat (match-string 1 emacs-version) "; " topic))) 79 (setq topic (concat emacs-version "; " topic))
80 ;; If there are four numbers in emacs-version, this is a pretest 80 (when (string-match "^\\(\\([.0-9]+\\)*\\)\\.[0-9]+$" emacs-version)
81 ;; version. 81 (setq topic (concat (match-string 1 emacs-version) "; " topic))))
82 (let* ((pretest-p (string-match "\\..*\\..*\\." emacs-version)) 82 ;; If there are four numbers in emacs-version (three for MS-DOS),
83 ;; this is a pretest version.
84 (let* ((pretest-p (string-match (if (eq system-type 'ms-dos)
85 "\\..*\\."
86 "\\..*\\..*\\.")
87 emacs-version))
83 (from-buffer (current-buffer)) 88 (from-buffer (current-buffer))
84 (reporting-address (if pretest-p 89 (reporting-address (if pretest-p
85 report-emacs-bug-pretest-address 90 report-emacs-bug-pretest-address