emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/mail/emacsbug.el


From: Eli Zaretskii
Subject: [Emacs-diffs] Changes to emacs/lisp/mail/emacsbug.el
Date: Fri, 06 Jan 2006 19:40:59 +0000

Index: emacs/lisp/mail/emacsbug.el
diff -u emacs/lisp/mail/emacsbug.el:1.67 emacs/lisp/mail/emacsbug.el:1.68
--- emacs/lisp/mail/emacsbug.el:1.67    Sat Aug  6 18:54:04 2005
+++ emacs/lisp/mail/emacsbug.el Fri Jan  6 19:40:59 2006
@@ -78,15 +78,16 @@
   (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 @@
     (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")))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]