summaryrefslogtreecommitdiff
path: root/lisp/mail/emacsbug.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2006-01-06 19:41:35 +0000
committerEli Zaretskii <eliz@gnu.org>2006-01-06 19:41:35 +0000
commit53dab082e3b103317f2a34b4f0533b0c3038782c (patch)
tree2893f475d620cbe892ec77ddb722e1555459dd07 /lisp/mail/emacsbug.el
parentcbcc2d49795295e9591895a7d3239079b0d4b58b (diff)
downloademacs-53dab082e3b103317f2a34b4f0533b0c3038782c.tar.gz
(report-emacs-bug): Let explanations correctly reflect the address to which
the report will be sent.
Diffstat (limited to 'lisp/mail/emacsbug.el')
-rw-r--r--lisp/mail/emacsbug.el24
1 files changed, 12 insertions, 12 deletions
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el
index bb88c447320..fc3494dde5f 100644
--- a/lisp/mail/emacsbug.el
+++ b/lisp/mail/emacsbug.el
@@ -78,15 +78,16 @@ Prompts for bug subject. Leaves you in a mail buffer."
(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))
+ (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))
user-point prompt-beg-point message-end-point)
(setq message-end-point
(with-current-buffer (get-buffer-create "*Messages*")
(point-max-marker)))
- (compose-mail (if pretest-p
- report-emacs-bug-pretest-address
- report-emacs-bug-address)
+ (compose-mail reporting-address
topic)
;; The rest of this does not execute
;; if the user was asked to confirm and said no.
@@ -100,20 +101,19 @@ Prompts for bug subject. Leaves you in a mail buffer."
(setq prompt-beg-point (point))
(unless report-emacs-bug-no-explanations
;; Insert warnings for novice users.
- (insert "This bug report will be sent to the Free Software Foundation,\n")
- (let ((pos (point)))
- (insert "not to your local site managers!")
- (put-text-property pos (point) 'face 'highlight))
- (insert "\nPlease write in ")
+ (when (string-match "@gnu\\.org^" reporting-address)
+ (insert "This bug report will be sent to the Free Software Foundation,\n")
+ (let ((pos (point)))
+ (insert "not to your local site managers!")
+ (put-text-property pos (point) 'face 'highlight)))
+ (insert "\nPlease write in ")
(let ((pos (point)))
(insert "English")
(put-text-property pos (point) 'face 'highlight))
(insert " if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.\n\n")
(insert (format "Your bug report will be posted to the %s mailing list"
- (if pretest-p
- report-emacs-bug-pretest-address
- report-emacs-bug-address)))
+ reporting-address))
(if pretest-p
(insert ".\n\n")
(insert ",\nand to the gnu.emacs.bug news group.\n\n")))