# HG changeset patch # User Micha¸«³l Cadilhac # Date 1187144602 0 # Node ID 5d46134ea7dd12ffd64c86edd72503bfdfde2eca # Parent 06642539826e21da6f257db1a1b5cbfd87f2de54 (report-emacs-bug): Put `Bug: emacs-version; ' in the mail title. Suggested by Reiner Steib. diff -r 06642539826e -r 5d46134ea7dd lisp/mail/emacsbug.el --- a/lisp/mail/emacsbug.el Tue Aug 14 15:08:06 2007 +0000 +++ b/lisp/mail/emacsbug.el Wed Aug 15 02:23:22 2007 +0000 @@ -73,18 +73,21 @@ ;; 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: ")))) + ;; The syntax `version;' is preferred to `[version]' because the + ;; latter could be mistakenly stripped by mailing software. + (setq topic (concat "Bug: " emacs-version "; " topic)) ;; 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) + (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 +109,7 @@ (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 +135,8 @@ (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")