* (gnus-inews-yank-articles): Reselect the message frame after selecting a new
authoryamaoka <yamaoka>
Wed, 20 Jan 1999 05:49:43 +0000 (05:49 +0000)
committeryamaoka <yamaoka>
Wed, 20 Jan 1999 05:49:43 +0000 (05:49 +0000)
article if the value of `message-use-multi-frames' is non-nil and plural
articles are given.

lisp/gnus-msg.el

index c3753cc..e8788c8 100644 (file)
@@ -351,13 +351,18 @@ If prefix argument YANK is non-nil, original article is yanked automatically."
   (gnus-summary-followup (gnus-summary-work-articles arg) t))
 
 (defun gnus-inews-yank-articles (articles)
-  (let (beg article)
+  (let ((frame (when (and message-use-multi-frames
+                         (> (length articles) 1))
+                (window-frame (get-buffer-window (current-buffer)))))
+       beg article)
     (message-goto-body)
     (while (setq article (pop articles))
       (save-window-excursion
        (set-buffer gnus-summary-buffer)
        (gnus-summary-select-article nil nil nil article)
        (gnus-summary-remove-process-mark article))
+      (when frame
+       (select-frame frame))
       (gnus-copy-article-buffer)
       (let ((message-reply-buffer gnus-article-copy)
            (message-reply-headers gnus-current-headers))