diff options
| author | Lars Ingebrigtsen | 2011-02-07 22:49:38 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2011-02-07 22:49:38 +0000 |
| commit | b52daf3d93096c3d1c40ac04568fa4f9540253f1 (patch) | |
| tree | 33dae45fe7115ea6d1692238942b923d0ccfa211 | |
| parent | 226590f8d1247314abf913cc1bc77621f8a5bca9 (diff) | |
| download | emacs-b52daf3d93096c3d1c40ac04568fa4f9540253f1.tar.gz emacs-b52daf3d93096c3d1c40ac04568fa4f9540253f1.zip | |
nnimap.el (nnimap-update-info): Simplify split history test.
| -rw-r--r-- | lisp/gnus/ChangeLog | 1 | ||||
| -rw-r--r-- | lisp/gnus/nnimap.el | 12 |
2 files changed, 6 insertions, 7 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index a18f145cb68..412492c29dc 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -7,6 +7,7 @@ | |||
| 7 | characters. | 7 | characters. |
| 8 | (nnimap-process-quirk): Renamed function to avoid collision. | 8 | (nnimap-process-quirk): Renamed function to avoid collision. |
| 9 | (nnimap-update-info): Fix macrology bug-out. | 9 | (nnimap-update-info): Fix macrology bug-out. |
| 10 | (nnimap-update-info): Simplify split history test. | ||
| 10 | 11 | ||
| 11 | 2011-02-06 Lars Ingebrigtsen <larsi@gnus.org> | 12 | 2011-02-06 Lars Ingebrigtsen <larsi@gnus.org> |
| 12 | 13 | ||
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index 127082bc28f..a6fe6b1489b 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el | |||
| @@ -1342,13 +1342,11 @@ textual parts.") | |||
| 1342 | ;; Tell Gnus whether there are any \Recent messages in any of | 1342 | ;; Tell Gnus whether there are any \Recent messages in any of |
| 1343 | ;; the groups. | 1343 | ;; the groups. |
| 1344 | (let ((recent (cdr (assoc '%Recent flags)))) | 1344 | (let ((recent (cdr (assoc '%Recent flags)))) |
| 1345 | (when (and active recent) | 1345 | (when (and active |
| 1346 | (while recent | 1346 | recent |
| 1347 | (when (> (car recent) (cdr active)) | 1347 | (> (car (last recent)) (cdr active))) |
| 1348 | (push (list (cons (gnus-group-real-name group) 0)) | 1348 | (push (list (cons (gnus-group-real-name group) 0)) |
| 1349 | nnmail-split-history) | 1349 | nnmail-split-history))) |
| 1350 | (setq recent nil)) | ||
| 1351 | (pop recent)))) | ||
| 1352 | ;; Note the active level for the next run-through. | 1350 | ;; Note the active level for the next run-through. |
| 1353 | (gnus-group-set-parameter info 'active (gnus-active group)) | 1351 | (gnus-group-set-parameter info 'active (gnus-active group)) |
| 1354 | (gnus-group-set-parameter info 'uidvalidity uidvalidity) | 1352 | (gnus-group-set-parameter info 'uidvalidity uidvalidity) |