From b43287e41307ea2cb331b8915c8b1088ba9e5e9f Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Wed, 16 Sep 2020 13:25:10 +0200 Subject: [PATCH] Tweak previous report-emacs-bug-hook change * lisp/mail/emacsbug.el (report-emacs-bug-hook): Add to the hook locally so sending stuff from Message afterwards won't trigger the same question. --- lisp/mail/emacsbug.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el index 23b60be97f1..36d1dc7cac8 100644 --- a/lisp/mail/emacsbug.el +++ b/lisp/mail/emacsbug.el @@ -456,7 +456,8 @@ and send the mail again%s." (lambda () (when (y-or-n-p "Save this mail sending choice?") (customize-save-variable 'send-mail-function - send-mail-function)))))) + send-mail-function))) + nil t))) (or report-emacs-bug-no-confirmation ;; mailclient.el does not need a valid From (eq send-mail-function 'mailclient-send-it) -- 2.39.2