(gnus-inews-insert-gcc): Protect against when we don't have a group name.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 10 Apr 2012 22:39:23 +0000 (00:39 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 10 Apr 2012 22:39:23 +0000 (00:39 +0200)
lisp/ChangeLog
lisp/gnus-msg.el

index 18fc264..19e2447 100644 (file)
@@ -1,5 +1,8 @@
 2012-04-10  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * 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
index 500ace9..507f040 100644 (file)
@@ -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