diff options
| author | Lars Magne Ingebrigtsen | 2010-11-26 02:37:23 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-11-26 02:37:23 +0000 |
| commit | 5be93fc846d94d07ed1142f2cdaab5329bb05fef (patch) | |
| tree | bf2dbc048523972cf6581653b5865a5a9c909f9e | |
| parent | 1e91d0eb709bbceac93ad9418ba453d74d4221b0 (diff) | |
| download | emacs-5be93fc846d94d07ed1142f2cdaab5329bb05fef.tar.gz emacs-5be93fc846d94d07ed1142f2cdaab5329bb05fef.zip | |
nnmail.el (nnmail-expiry-target-group): Protect against degenerate results from -accept-article.
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/nnmail.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/shr-color.el | 1 |
3 files changed, 8 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 93dd22ff45b..2a4b97bd8d2 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2010-11-26 Lars Magne Ingebrigtsen <larsi@gnus.org> | 1 | 2010-11-26 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 2 | ||
| 3 | * nnmail.el (nnmail-expiry-target-group): Protect against degenerate | ||
| 4 | results from -accept-article. | ||
| 5 | |||
| 6 | * shr-color.el: Require cl when compiling. | ||
| 7 | |||
| 3 | * nnheader.el (nnheader-update-marks-actions): Fix typo in last | 8 | * nnheader.el (nnheader-update-marks-actions): Fix typo in last |
| 4 | checkin. | 9 | checkin. |
| 5 | 10 | ||
diff --git a/lisp/gnus/nnmail.el b/lisp/gnus/nnmail.el index e5af75419b4..06b464c0b29 100644 --- a/lisp/gnus/nnmail.el +++ b/lisp/gnus/nnmail.el | |||
| @@ -1916,7 +1916,8 @@ If TIME is nil, then return the cutoff time for oldness instead." | |||
| 1916 | (when (or (gnus-request-group target) | 1916 | (when (or (gnus-request-group target) |
| 1917 | (gnus-request-create-group target)) | 1917 | (gnus-request-create-group target)) |
| 1918 | (let ((group-art (gnus-request-accept-article target nil t t))) | 1918 | (let ((group-art (gnus-request-accept-article target nil t t))) |
| 1919 | (when (consp group-art) | 1919 | (when (and (consp group-art) |
| 1920 | (cdr group-art)) | ||
| 1920 | (gnus-group-mark-article-read target (cdr group-art)))))))) | 1921 | (gnus-group-mark-article-read target (cdr group-art)))))))) |
| 1921 | 1922 | ||
| 1922 | (defun nnmail-fancy-expiry-target (group) | 1923 | (defun nnmail-fancy-expiry-target (group) |
diff --git a/lisp/gnus/shr-color.el b/lisp/gnus/shr-color.el index 3346b43d964..779c30bc8f3 100644 --- a/lisp/gnus/shr-color.el +++ b/lisp/gnus/shr-color.el | |||
| @@ -27,6 +27,7 @@ | |||
| 27 | ;;; Code: | 27 | ;;; Code: |
| 28 | 28 | ||
| 29 | (require 'color) | 29 | (require 'color) |
| 30 | (eval-when-compile (require 'cl)) | ||
| 30 | 31 | ||
| 31 | (defgroup shr-color nil | 32 | (defgroup shr-color nil |
| 32 | "Simple HTML Renderer colors" | 33 | "Simple HTML Renderer colors" |