diff options
| author | Lars Magne Ingebrigtsen | 2010-09-05 00:52:55 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-09-05 00:52:55 +0000 |
| commit | ef45ee6fc8066898f1edc637b2fd3b5474b0fb9e (patch) | |
| tree | 37b2f23eb6958aa8047e832b96f9f4dfc9b6f6f6 | |
| parent | 34e03853f0c8f1bc3e4ba6dcc62a79c1f8027b9b (diff) | |
| download | emacs-ef45ee6fc8066898f1edc637b2fd3b5474b0fb9e.tar.gz emacs-ef45ee6fc8066898f1edc637b2fd3b5474b0fb9e.zip | |
pop3.el (pop3-movemail): Use erase-buffer instead of looping and deleting regions, which seems rather odd; gnus-start.el (gnus-get-unread-articles): Protect against groups that come from no known methods.
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/gnus-start.el | 25 | ||||
| -rw-r--r-- | lisp/gnus/pop3.el | 5 |
3 files changed, 19 insertions, 16 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 9d1571751c1..5f692d626cf 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,7 +1,12 @@ | |||
| 1 | 2010-09-04 Lars Magne Ingebrigtsen <larsi@gnus.org> | 1 | 2010-09-04 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 2 | ||
| 3 | * gnus-start.el (gnus-get-unread-articles): Protect against groups that | ||
| 4 | come from no known methods. | ||
| 5 | |||
| 3 | * pop3.el (pop3-display-message-size-flag): Removed -- everybody wants | 6 | * pop3.el (pop3-display-message-size-flag): Removed -- everybody wants |
| 4 | message sizes. | 7 | message sizes. |
| 8 | (pop3-movemail): Use erase-buffer instead of looping and deleting | ||
| 9 | regions, which seems rather odd. | ||
| 5 | 10 | ||
| 6 | * gnus-agent.el (gnus-agent-load-local): Only read the agent.lib/local | 11 | * gnus-agent.el (gnus-agent-load-local): Only read the agent.lib/local |
| 7 | file once per `g' run. | 12 | file once per `g' run. |
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el index b111f5caa19..c7d85524ef0 100644 --- a/lisp/gnus/gnus-start.el +++ b/lisp/gnus/gnus-start.el | |||
| @@ -1747,18 +1747,19 @@ If SCAN, request a scan of that group as well." | |||
| 1747 | infos (nth 2 (car type-cache))) | 1747 | infos (nth 2 (car type-cache))) |
| 1748 | (pop type-cache) | 1748 | (pop type-cache) |
| 1749 | 1749 | ||
| 1750 | ;; See if any of the groups from this method require updating. | 1750 | (when method |
| 1751 | (when (block nil | 1751 | ;; See if any of the groups from this method require updating. |
| 1752 | (dolist (info infos) | 1752 | (when (block nil |
| 1753 | (when (<= (gnus-info-level info) | 1753 | (dolist (info infos) |
| 1754 | (if (eq method-type 'foreign) | 1754 | (when (<= (gnus-info-level info) |
| 1755 | foreign-level | 1755 | (if (eq method-type 'foreign) |
| 1756 | alevel)) | 1756 | foreign-level |
| 1757 | (return t)))) | 1757 | alevel)) |
| 1758 | (gnus-read-active-for-groups method infos) | 1758 | (return t)))) |
| 1759 | (dolist (info infos) | 1759 | (gnus-read-active-for-groups method infos) |
| 1760 | (inline (gnus-get-unread-articles-in-group | 1760 | (dolist (info infos) |
| 1761 | info (gnus-active (gnus-info-group info))))))) | 1761 | (inline (gnus-get-unread-articles-in-group |
| 1762 | info (gnus-active (gnus-info-group info)))))))) | ||
| 1762 | (gnus-message 6 "Checking new news...done"))) | 1763 | (gnus-message 6 "Checking new news...done"))) |
| 1763 | 1764 | ||
| 1764 | (defun gnus-method-rank (type method) | 1765 | (defun gnus-method-rank (type method) |
diff --git a/lisp/gnus/pop3.el b/lisp/gnus/pop3.el index b8f724c918d..8b9ff662781 100644 --- a/lisp/gnus/pop3.el +++ b/lisp/gnus/pop3.el | |||
| @@ -165,10 +165,7 @@ Shorter values mean quicker response, but are more CPU intensive.") | |||
| 165 | (let ((coding-system-for-write 'binary)) | 165 | (let ((coding-system-for-write 'binary)) |
| 166 | (write-region (point-min) (point-max) crashbox t 'nomesg)) | 166 | (write-region (point-min) (point-max) crashbox t 'nomesg)) |
| 167 | (set-buffer (process-buffer process)) | 167 | (set-buffer (process-buffer process)) |
| 168 | (while (> (buffer-size) 5000) | 168 | (erase-buffer)) |
| 169 | (goto-char (point-min)) | ||
| 170 | (forward-line 50) | ||
| 171 | (delete-region (point-min) (point)))) | ||
| 172 | (unless pop3-leave-mail-on-server | 169 | (unless pop3-leave-mail-on-server |
| 173 | (pop3-dele process n)) | 170 | (pop3-dele process n)) |
| 174 | (setq n (+ 1 n)) | 171 | (setq n (+ 1 n)) |