]> git.eshelyaron.com Git - emacs.git/commitdiff
Subject: Restore correct Gnus newsgroup name after sending message
authorØyvind Stegard <oyvind@stegard.net>
Fri, 27 Jan 2017 00:02:23 +0000 (01:02 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 27 Jan 2017 00:02:23 +0000 (01:02 +0100)
* 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

index e56f50cdad13e90bee3b217913dfd56d334874da..a193ab41348593d31e6cf6e4fbee03c92d2622e9 100644 (file)
@@ -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)