]> git.eshelyaron.com Git - emacs.git/commitdiff
Have emacsbug only warn the user when sending to the bug address
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 28 Jul 2019 11:54:44 +0000 (13:54 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 28 Jul 2019 11:54:44 +0000 (13:54 +0200)
* lisp/mail/emacsbug.el (report-emacs-bug-hook): Only ask for
confirmation if we're really sending the bug report to the bug
address.  If the user is sending it somewhere else (to themselves,
for instance), the warning is misleading.

lisp/mail/emacsbug.el

index 44765749fe75d4b8901434fb55b910381fd46a20..13219a4b4444bc347e3bfecc6b68aa9807a66c57 100644 (file)
@@ -430,9 +430,10 @@ usually do not have translators for other languages.\n\n")))
                        report-emacs-bug-orig-text)
          (error "No text entered in bug report"))
     ;; Warning for novice users.
-    (unless (or report-emacs-bug-no-confirmation
-               (yes-or-no-p
-                "Send this bug report to the Emacs maintainers? "))
+    (when (and (string-match "bug-gnu-emacs@gnu\\.org" (mail-fetch-field "to"))
+               (not report-emacs-bug-no-confirmation)
+              (not (yes-or-no-p
+                    "Send this bug report to the Emacs maintainers? ")))
       (with-output-to-temp-buffer "*Bug Help*"
        (princ (substitute-command-keys
                 (format "\