diff options
Diffstat (limited to 'lisp/gnus/gnus-msg.el')
| -rw-r--r-- | lisp/gnus/gnus-msg.el | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el index 466a62713ed..daaea3980b5 100644 --- a/lisp/gnus/gnus-msg.el +++ b/lisp/gnus/gnus-msg.el @@ -1985,13 +1985,14 @@ process-mark several articles, they will all be attached." buffers t nil nil (car buffers)))) (gnus-summary-mail-other-window) (setq destination (current-buffer))) + (gnus-summary-expand-window) (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) |
