summaryrefslogtreecommitdiff
path: root/lisp/mail/emacsbug.el
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2007-08-21 04:54:03 +0000
committerMiles Bader <miles@gnu.org>2007-08-21 04:54:03 +0000
commit42216a6b65dabb543156bc5e52cbf89d8ce96cb9 (patch)
tree1036c82a751bd2437cbc1b1d7f047bf3af679234 /lisp/mail/emacsbug.el
parenteb5149ee586e6df9d919497688db0643c245386c (diff)
parentbdaf8a62d53cf8d5a0dc4f0dc530ecd6fc1f44fe (diff)
downloademacs-42216a6b65dabb543156bc5e52cbf89d8ce96cb9.tar.gz
emacs-42216a6b65dabb543156bc5e52cbf89d8ce96cb9.tar.bz2
emacs-42216a6b65dabb543156bc5e52cbf89d8ce96cb9.zip
Merge from emacs--devo--0
Patches applied: * emacs--devo--0 (patch 852-856) - Update from CVS - Merge from emacs--rel--22 * emacs--rel--22 (patch 93-96) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 245) - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-249
Diffstat (limited to 'lisp/mail/emacsbug.el')
-rw-r--r--lisp/mail/emacsbug.el39
1 files changed, 24 insertions, 15 deletions
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el
index cfcad60c11a..70169615b0d 100644
--- a/lisp/mail/emacsbug.el
+++ b/lisp/mail/emacsbug.el
@@ -73,18 +73,27 @@ Prompts for bug subject. Leaves you in a mail buffer."
;; This strange form ensures that (recent-keys) is the value before
;; the bug subject string is read.
(interactive (reverse (list (recent-keys) (read-string "Bug Subject: "))))
- ;; If there are four numbers in emacs-version, this is a pretest
- ;; version.
- (let* ((pretest-p (string-match "\\..*\\..*\\." emacs-version))
- (from-buffer (current-buffer))
- (reporting-address (if pretest-p
- report-emacs-bug-pretest-address
- report-emacs-bug-address))
- ;; Put these properties on semantically-void text.
- (prompt-properties '(field emacsbug-prompt
- intangible but-helpful
- rear-nonsticky t))
- user-point message-end-point)
+ ;; The syntax `version;' is preferred to `[version]' because the
+ ;; latter could be mistakenly stripped by mailing software.
+ (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
+ report-emacs-bug-address))
+ ;; Put these properties on semantically-void text.
+ (prompt-properties '(field emacsbug-prompt
+ intangible but-helpful
+ rear-nonsticky t))
+ user-point message-end-point)
(setq message-end-point
(with-current-buffer (get-buffer-create "*Messages*")
(point-max-marker)))
@@ -106,7 +115,7 @@ Prompts for bug subject. Leaves you in a mail buffer."
(let ((pos (point)))
(insert "not to your local site managers!")
(put-text-property pos (point) 'face 'highlight)))
- (insert "\nPlease write in ")
+ (insert "\nPlease write in ")
(let ((pos (point)))
(insert "English")
(put-text-property pos (point) 'face 'highlight))
@@ -132,8 +141,8 @@ usually do not have translators to read other languages for them.\n\n")
(let ((debug-file (expand-file-name "DEBUG" data-directory)))
(if (file-readable-p debug-file)
- (insert "If you would like to further debug the crash, please read the file\n"
- debug-file " for instructions.\n")))
+ (insert "If you would like to further debug the crash, please read the file\n"
+ debug-file " for instructions.\n")))
(add-text-properties (1+ user-point) (point) prompt-properties)
(insert "\n\nIn " (emacs-version) "\n")