summaryrefslogtreecommitdiff
path: root/lisp/mail/emacsbug.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2019-07-28 13:54:44 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2019-07-28 13:54:44 +0200
commit5289170ead27a168d41a12f09da6d9548729ec88 (patch)
tree6566057c448afe71b1849af6e044d1db435f9b9c /lisp/mail/emacsbug.el
parent3806ddcb76ae19990c5e189b4f12991434d35bfd (diff)
downloademacs-5289170ead27a168d41a12f09da6d9548729ec88.tar.gz
emacs-5289170ead27a168d41a12f09da6d9548729ec88.tar.bz2
emacs-5289170ead27a168d41a12f09da6d9548729ec88.zip
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.
Diffstat (limited to 'lisp/mail/emacsbug.el')
-rw-r--r--lisp/mail/emacsbug.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el
index 44765749fe7..13219a4b444 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 "\