]> code.delx.au - gnu-emacs/commitdiff
Backport gnus-msg fix from trunk
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 29 Dec 2012 08:05:17 +0000 (00:05 -0800)
committerGlenn Morris <rgm@gnu.org>
Sat, 29 Dec 2012 08:05:17 +0000 (00:05 -0800)
* lisp/gnus/gnus-msg.el (gnus-summary-resend-message):
Don't bug out on non-string posting styles.

Fixes: debbugs:13285
lisp/gnus/ChangeLog
lisp/gnus/gnus-msg.el

index 1ece8bf91078c7d2b62cd38552f22854785a0793..fda1b08090342d92a124ed640d2a952eb34b18be 100644 (file)
@@ -1,3 +1,8 @@
+2012-12-27  Lars Ingebrigtsen  <larsi@gnus.org>
+
+       * gnus-msg.el (gnus-summary-resend-message): Don't bug out on
+       non-string posting styles (bug#13285).
+
 2012-12-27  Glenn Morris  <rgm@gnu.org>
 
        * plstore.el (plstore-passphrase-callback-function):
index 77bb6281bc4f490146033806568d0b0457beb6f6..c967bc06565b0f2520d629eaf7b96407ea14330f 100644 (file)
@@ -1384,7 +1384,8 @@ For the \"inline\" alternatives, also see the variable
     (dolist (style (if styles
                       (append gnus-posting-styles (list (cons ".*" styles)))
                     gnus-posting-styles))
-      (when (string-match (pop style) gnus-newsgroup-name)
+      (when (and (stringp (car style))
+                (string-match (pop style) gnus-newsgroup-name))
        (when (setq tem (cadr (assq 'name style)))
          (setq user-full-name tem))
        (when (setq tem (cadr (assq 'address style)))