diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el index 466a62713e..de5ebd3409 100644 --- a/lisp/gnus/gnus-msg.el +++ b/lisp/gnus/gnus-msg.el @@ -1987,11 +1987,11 @@ gnus-summary-attach-article (setq destination (current-buffer))) (gnus-summary-iterate n (gnus-summary-select-article) - (set-buffer destination) - ;; Attach at the end of the buffer. - (save-excursion - (goto-char (point-max)) - (message-forward-make-body-mime gnus-original-article-buffer))) + (with-current-buffer destination + ;; Attach at the end of the buffer. + (save-excursion + (goto-char (point-max)) + (message-forward-make-body-mime gnus-original-article-buffer)))) (gnus-configure-windows 'message t))) (provide 'gnus-msg)