From 7416f008f03214e4be6d3fac7de80ee82d041611 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Stegard?= Date: Fri, 27 Jan 2017 01:02:23 +0100 Subject: [PATCH] Subject: Restore correct Gnus newsgroup name after sending message * lisp/gnus/gnus-msg.el (gnus-msg-mail): Set the value of gnus-newsgroup-name in the correct buffer (bug#24329). Copyright-paperwork-exempt: yes --- lisp/gnus/gnus-msg.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el index e56f50cdad1..a193ab41348 100644 --- a/lisp/gnus/gnus-msg.el +++ b/lisp/gnus/gnus-msg.el @@ -546,7 +546,8 @@ instead." (gnus-setup-message 'message (message-mail to subject other-headers continue nil yank-action send-actions return-action))) - (setq gnus-newsgroup-name group-name)) + (with-current-buffer buf + (setq gnus-newsgroup-name group-name))) (when switch-action (setq mail-buf (current-buffer)) (switch-to-buffer buf) -- 2.39.5