]> git.eshelyaron.com Git - emacs.git/commitdiff
nnmail.el (nnmail-expiry-target-group): Protect against degenerate results from ...
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Fri, 26 Nov 2010 02:37:23 +0000 (02:37 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 26 Nov 2010 02:37:23 +0000 (02:37 +0000)
lisp/gnus/ChangeLog
lisp/gnus/nnmail.el
lisp/gnus/shr-color.el

index 93dd22ff45b02d8cac866d927c54627c1b4f9dee..2a4b97bd8d2cb5f88b3246a58527103ac7eb95a9 100644 (file)
@@ -1,5 +1,10 @@
 2010-11-26  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * nnmail.el (nnmail-expiry-target-group): Protect against degenerate
+       results from -accept-article.
+
+       * shr-color.el: Require cl when compiling.
+
        * nnheader.el (nnheader-update-marks-actions): Fix typo in last
        checkin.
 
index e5af75419b45f733f9d6274f5360910dd8857dce..06b464c0b2911a7fb8d8e060b5254c1d9c2da9fe 100644 (file)
@@ -1916,7 +1916,8 @@ If TIME is nil, then return the cutoff time for oldness instead."
       (when (or (gnus-request-group target)
                (gnus-request-create-group target))
        (let ((group-art (gnus-request-accept-article target nil t t)))
-         (when (consp group-art)
+         (when (and (consp group-art)
+                    (cdr group-art))
            (gnus-group-mark-article-read target (cdr group-art))))))))
 
 (defun nnmail-fancy-expiry-target (group)
index 3346b43d96495f2effc90bb4972137e0bcd29761..779c30bc8f37df990252dcc7a781ea60cd367b29 100644 (file)
@@ -27,6 +27,7 @@
 ;;; Code:
 
 (require 'color)
+(eval-when-compile (require 'cl))
 
 (defgroup shr-color nil
   "Simple HTML Renderer colors"