From: Øyvind Stegard Date: Fri, 27 Jan 2017 00:02:23 +0000 (+0100) Subject: Subject: Restore correct Gnus newsgroup name after sending message X-Git-Tag: emacs-26.0.90~870^2~23 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7416f008f03214e4be6d3fac7de80ee82d041611;p=emacs.git 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 --- 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)