emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 5289170 2/2: Have emacsbug only warn the user when


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 5289170 2/2: Have emacsbug only warn the user when sending to the bug address
Date: Sun, 28 Jul 2019 07:55:27 -0400 (EDT)

branch: master
commit 5289170ead27a168d41a12f09da6d9548729ec88
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Have emacsbug only warn the user when sending to the bug address
    
    * 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 | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el
index 4476574..13219a4 100644
--- a/lisp/mail/emacsbug.el
+++ b/lisp/mail/emacsbug.el
@@ -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 "\



reply via email to

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