summaryrefslogtreecommitdiff
path: root/lisp/gnus/gnus-msg.el
diff options
context:
space:
mode:
authorØyvind Stegard <oyvind@stegard.net>2017-01-27 01:02:23 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2017-01-27 01:02:23 +0100
commit7416f008f03214e4be6d3fac7de80ee82d041611 (patch)
tree97773ab2cbced0165dde5e84dbe8c2961ea6c105 /lisp/gnus/gnus-msg.el
parent110cd0b439101a15f0fbc9fb86bf22b77f8ec260 (diff)
downloademacs-7416f008f03214e4be6d3fac7de80ee82d041611.tar.gz
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
Diffstat (limited to 'lisp/gnus/gnus-msg.el')
-rw-r--r--lisp/gnus/gnus-msg.el3
1 files changed, 2 insertions, 1 deletions
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)