[gnus git] branch master updated: m0-5-285-g9943b99 =1= gnus-msg.el (gnus-setup-message): Set the posting-style and gcc properly for nnir summary buffers.

Andrew Cohen <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  9943b99771ef09cdf99d671d6ade6b358452bd00 (commit)
      from  8cae15d2b64778ea9190e10c67e9c8234f5eeeb5 (commit)


- Log -----------------------------------------------------------------
commit 9943b99771ef09cdf99d671d6ade6b358452bd00
Author: Andrew Cohen <[email protected]>
Date:   Wed Mar 27 09:42:07 2013 -0400

    gnus-msg.el (gnus-setup-message): Set the posting-style and gcc
    properly for nnir summary buffers.

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6e554d2..89e5de9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
 2013-03-27  Andrew Cohen  <[email protected]>
 
+	* gnus-msg.el (gnus-setup-message): When replying from an nnir summary
+	buffer use the posting-style and gcc of the original article group.
+	(gnus-inews-insert-gcc): Don't set gcc-self for virtual groups.
+
 	* nnir.el: Fix byte-compile warning. nnoo-define-skeleton should come
 	after other deffoos.
 
diff --git a/lisp/gnus-msg.el b/lisp/gnus-msg.el
index f7b2d8b..067465b 100644
--- a/lisp/gnus-msg.el
+++ b/lisp/gnus-msg.el
@@ -426,15 +426,24 @@ Thank you for your help in stamping out bugs.
     `(let ((,winconf (current-window-configuration))
 	   (,winconf-name gnus-current-window-configuration)
 	   (,buffer (buffer-name (current-buffer)))
-	   (,article gnus-article-reply)
+	   (,article (or  (when (and
+				 (string-match "^nnir:" gnus-newsgroup-name)
+				 gnus-article-reply)
+			    (nnir-article-number gnus-article-reply))
+			   gnus-article-reply))
 	   (,yanked gnus-article-yanked-articles)
-	   (,group gnus-newsgroup-name)
+	   (,group (or (when (and
+			      (string-match "^nnir:" gnus-newsgroup-name)
+			      gnus-article-reply)
+			 (nnir-article-group gnus-article-reply))
+	   	       gnus-newsgroup-name))
 	   (message-header-setup-hook
 	    (copy-sequence message-header-setup-hook))
 	   (mbl mml-buffer-list)
 	   (message-mode-hook (copy-sequence message-mode-hook)))
        (setq mml-buffer-list nil)
-       (add-hook 'message-header-setup-hook 'gnus-inews-insert-gcc)
+       (add-hook 'message-header-setup-hook (lambda ()
+       					      (gnus-inews-insert-gcc ,group)))
        ;; message-newsreader and message-mailer were formerly set in
        ;; gnus-inews-add-send-actions, but this is too late when
        ;; message-generate-headers-first is used. --ansel
@@ -1706,7 +1715,8 @@ this is a reply."
          (group (when group (gnus-group-decoded-name group)))
          (var (or gnus-outgoing-message-group gnus-message-archive-group))
 	 (gcc-self-val
-	  (and group (gnus-group-find-parameter group 'gcc-self)))
+	  (and group (gnus-group-find-parameter group 'gcc-self)
+	       (not (gnus-virtual-group-p group))))
 	 result
 	 (groups
 	  (cond

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog   |    4 ++++
 lisp/gnus-msg.el |   18 ++++++++++++++----
 2 files changed, 18 insertions(+), 4 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.