[gnus git] branch no-gnus updated: m0-1-100-gbf5aff3 =1= (gnus-inews-insert-gcc): Protect against when we don't have a group name.

Lars Magne Ingebrigtsen <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  bf5aff3ff7c875468058f991244a50da9ee71d36 (commit)
      from  7e70276fec2104ca5a9c635d49fd65818e5e9e79 (commit)


- Log -----------------------------------------------------------------
commit bf5aff3ff7c875468058f991244a50da9ee71d36
Author: Lars Magne Ingebrigtsen <[email protected]>
Date:   Wed Apr 11 00:39:23 2012 +0200

    (gnus-inews-insert-gcc): Protect against when we don't have a group name.

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 18fc264..19e2447 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
 2012-04-10  Lars Magne Ingebrigtsen  <[email protected]>
 
+	* gnus-msg.el (gnus-inews-insert-gcc): Protect against when we don't
+	have a group name.
+
 	* gnus-art.el (article-wash-html): Ensure that we insert the HTML into
 	a multibyte buffer (bug#7410).
 	(article-wash-html): Parse the original article buffer to get the
diff --git a/lisp/gnus-msg.el b/lisp/gnus-msg.el
index 500ace9..507f040 100644
--- a/lisp/gnus-msg.el
+++ b/lisp/gnus-msg.el
@@ -1670,11 +1670,13 @@ this is a reply."
 			(not
 			 (setq result
 			       (cond
-				((stringp (caar var))
+				((and group
+				      (stringp (caar var)))
 				 ;; Regexp.
 				 (when (string-match (caar var) group)
 				   (cdar var)))
-				((functionp (car var))
+				((and group
+				      (functionp (car var)))
 				 ;; Function.
 				 (funcall (car var) group))
 				(t

-----------------------------------------------------------------------
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   |    3 +++
 lisp/gnus-msg.el |    6 ++++--
 2 files changed, 7 insertions(+), 2 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, no-gnus 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.