diff options
| author | Chong Yidong | 2011-06-28 14:10:11 -0400 |
|---|---|---|
| committer | Chong Yidong | 2011-06-28 14:10:11 -0400 |
| commit | 1176868d0a466ae5374d1c47de70f1fc22ef7cd6 (patch) | |
| tree | 98d5284c653ecf57ae8c12fcd2773e162aa1aeaa | |
| parent | f13e0b08d42bc1313e5b51c32b79ec33f2aa9995 (diff) | |
| download | emacs-1176868d0a466ae5374d1c47de70f1fc22ef7cd6.tar.gz emacs-1176868d0a466ae5374d1c47de70f1fc22ef7cd6.zip | |
Tweaks to the report-emacs-bug preamble.
* mail/emacsbug.el (report-emacs-bug): Handle non-gnu bug
addresses more clearly. Add hyperlinks for bug-gnu-emacs and
debbugs.gnu.org. Mention acknowledgment email.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/mail/emacsbug.el | 53 |
2 files changed, 38 insertions, 21 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ee0d6bb2922..29ea8dca53c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-06-28 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * mail/emacsbug.el (report-emacs-bug): Handle non-gnu bug | ||
| 4 | addresses more clearly. Add hyperlinks for bug-gnu-emacs and | ||
| 5 | debbugs.gnu.org. Mention acknowledgment email. | ||
| 6 | |||
| 1 | 2011-06-28 Lars Magne Ingebrigtsen <larsi@gnus.org> | 7 | 2011-06-28 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 8 | ||
| 3 | * mail/smtpmail.el (smtpmail-send-it): Leave off changing the | 9 | * mail/smtpmail.el (smtpmail-send-it): Leave off changing the |
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el index 6b062f2298f..0722227d3d2 100644 --- a/lisp/mail/emacsbug.el +++ b/lisp/mail/emacsbug.el | |||
| @@ -150,8 +150,8 @@ Prompts for bug subject. Leaves you in a mail buffer." | |||
| 150 | ;; Put these properties on semantically-void text. | 150 | ;; Put these properties on semantically-void text. |
| 151 | ;; report-emacs-bug-hook deletes these regions before sending. | 151 | ;; report-emacs-bug-hook deletes these regions before sending. |
| 152 | (prompt-properties '(field emacsbug-prompt | 152 | (prompt-properties '(field emacsbug-prompt |
| 153 | intangible but-helpful | 153 | intangible but-helpful |
| 154 | rear-nonsticky t)) | 154 | rear-nonsticky t)) |
| 155 | (can-insert-mail (or (report-emacs-bug-can-use-xdg-email) | 155 | (can-insert-mail (or (report-emacs-bug-can-use-xdg-email) |
| 156 | (report-emacs-bug-can-use-osx-open))) | 156 | (report-emacs-bug-can-use-osx-open))) |
| 157 | user-point message-end-point) | 157 | user-point message-end-point) |
| @@ -175,25 +175,36 @@ Prompts for bug subject. Leaves you in a mail buffer." | |||
| 175 | (backward-char (length signature))) | 175 | (backward-char (length signature))) |
| 176 | (unless report-emacs-bug-no-explanations | 176 | (unless report-emacs-bug-no-explanations |
| 177 | ;; Insert warnings for novice users. | 177 | ;; Insert warnings for novice users. |
| 178 | (when (string-match "@gnu\\.org$" report-emacs-bug-address) | 178 | (if (not (equal "bug-gnu-emacs@gnu.org" report-emacs-bug-address)) |
| 179 | (insert "This bug report will be sent to the Free Software Foundation,\n") | 179 | (insert (format "The report will be sent to %s.\n\n" |
| 180 | (let ((pos (point))) | 180 | report-emacs-bug-address)) |
| 181 | (insert "not to your local site managers!") | 181 | (insert "This bug report will be sent to the ") |
| 182 | (overlay-put (make-overlay pos (point)) 'face 'highlight))) | 182 | (insert-button |
| 183 | (insert "\nPlease write in ") | 183 | "Bug-GNU-Emacs" |
| 184 | (let ((pos (point))) | 184 | 'face 'link |
| 185 | (insert "English") | 185 | 'help-echo (concat "mouse-2, RET: Follow this link") |
| 186 | (overlay-put (make-overlay pos (point)) 'face 'highlight)) | 186 | 'action (lambda (button) |
| 187 | (insert " if possible, because the Emacs maintainers | 187 | (browse-url "http://lists.gnu.org/archive/html/bug-gnu-emacs/")) |
| 188 | usually do not have translators to read other languages for them.\n\n") | 188 | 'follow-link t) |
| 189 | (insert "Please check that the From: line gives an address where you can be reached.\n") | 189 | (insert " mailing list\nand the GNU bug tracker at ") |
| 190 | (insert (format "Your report will be posted to the %s mailing list" | 190 | (insert-button |
| 191 | report-emacs-bug-address)) | 191 | "debbugs.gnu.org" |
| 192 | (insert "\nand the gnu.emacs.bug news group, and at http://debbugs.gnu.org.\n\n")) | 192 | 'face 'link |
| 193 | 193 | 'help-echo (concat "mouse-2, RET: Follow this link") | |
| 194 | (insert "Please describe exactly what actions triggered the bug\n" | 194 | 'action (lambda (button) |
| 195 | "and the precise symptoms of the bug. If you can, give\n" | 195 | (browse-url "http://debbugs.gnu.org/")) |
| 196 | "a recipe starting from `emacs -Q':\n\n") | 196 | 'follow-link t) |
| 197 | |||
| 198 | (insert ". Please check that | ||
| 199 | the From: line contains a valid email address. After a delay of up | ||
| 200 | to one day, you should receive an acknowledgement at that address. | ||
| 201 | |||
| 202 | Please write in English if possible, as the Emacs maintainers | ||
| 203 | usually do not have translators for other languages.\n\n"))) | ||
| 204 | |||
| 205 | (insert "Please describe exactly what actions triggered the bug, and\n" | ||
| 206 | "the precise symptoms of the bug. If you can, give a recipe\n" | ||
| 207 | "starting from `emacs -Q':\n\n") | ||
| 197 | (add-text-properties (save-excursion | 208 | (add-text-properties (save-excursion |
| 198 | (rfc822-goto-eoh) | 209 | (rfc822-goto-eoh) |
| 199 | (line-beginning-position 2)) | 210 | (line-beginning-position 2)) |