aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2011-05-30 22:11:52 +0000
committerKatsumi Yamaoka2011-05-30 22:11:52 +0000
commitb5244046e1ea76b26b7acd516929502463b05eaf (patch)
treefea243d35ae0e2e457bc2adfcd2c2548aa6e3de1
parent1257e75502973fcdf4c2bbedaad4df0240171071 (diff)
downloademacs-b5244046e1ea76b26b7acd516929502463b05eaf.tar.gz
emacs-b5244046e1ea76b26b7acd516929502463b05eaf.zip
Merge changes made in Gnus trunk.
gnus-group.el (gnus-group-mark-article-read): It's possible that we want to have `gnus-newsgroup-unselected' kept sorted. If this isn't done, then unselected articles may be marked as read. pop3.el (pop3-open-server): Erase the buffer after the greeting, since not doing this seems to lead to a race condition in pop3-logon. nnvirtual.el (nnvirtual-request-article): Bind `gnus-command-method' so that the call chain it correct when we call "upwards". gnus-sum.el (gnus-select-newsgroup): Auto-expiry doesn't make sense in read-only groups. gnus-group.el (gnus-group-mark-article-read): Ditto. message.el (message-cite-reply-position): Doc string fix. nnimap.el (nnimap-transform-headers): Simplify regexp to hopefully avoid regexp overflow. (nnimap-transform-split-mail): Ditto. pop3.el (pop3-retr): Error out if the server closes the connection.
-rw-r--r--lisp/gnus/ChangeLog25
-rw-r--r--lisp/gnus/gnus-group.el8
-rw-r--r--lisp/gnus/gnus-sum.el3
-rw-r--r--lisp/gnus/message.el2
-rw-r--r--lisp/gnus/nnimap.el4
-rw-r--r--lisp/gnus/nnvirtual.el9
-rw-r--r--lisp/gnus/pop3.el3
7 files changed, 43 insertions, 11 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 5a7ea842153..dcbc647950f 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,28 @@
12011-05-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * gnus-group.el (gnus-group-mark-article-read): It's possible that we
4 want to have `gnus-newsgroup-unselected' kept sorted. If this isn't
5 done, then unselected articles may be marked as read.
6
7 * pop3.el (pop3-open-server): Erase the buffer after the greeting,
8 since not doing this seems to lead to a race condition in pop3-logon.
9
10 * nnvirtual.el (nnvirtual-request-article): Bind `gnus-command-method'
11 so that the call chain it correct when we call "upwards".
12
13 * gnus-sum.el (gnus-select-newsgroup): Auto-expiry doesn't make sense
14 in read-only groups.
15
16 * gnus-group.el (gnus-group-mark-article-read): Ditto.
17
18 * message.el (message-cite-reply-position): Doc string fix.
19
20 * nnimap.el (nnimap-transform-headers): Simplify regexp to hopefully
21 avoid regexp overflow.
22 (nnimap-transform-split-mail): Ditto.
23
24 * pop3.el (pop3-retr): Error out if the server closes the connection.
25
12011-05-30 Stefan Monnier <monnier@iro.umontreal.ca> 262011-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
2 27
3 * mml1991.el (mml1991-mailcrypt-encrypt): Remove use of ill-designed 28 * mml1991.el (mml1991-mailcrypt-encrypt): Remove use of ill-designed
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el
index 65192bf173e..4c474b0aa23 100644
--- a/lisp/gnus/gnus-group.el
+++ b/lisp/gnus/gnus-group.el
@@ -3567,7 +3567,8 @@ or nil if no action could be taken."
3567 (gnus-add-marked-articles group 'tick nil nil 'force) 3567 (gnus-add-marked-articles group 'tick nil nil 'force)
3568 (gnus-add-marked-articles group 'dormant nil nil 'force)) 3568 (gnus-add-marked-articles group 'dormant nil nil 'force))
3569 ;; Do auto-expirable marks if that's required. 3569 ;; Do auto-expirable marks if that's required.
3570 (when (gnus-group-auto-expirable-p group) 3570 (when (and (gnus-group-auto-expirable-p group)
3571 (not (gnus-group-read-only-p group)))
3571 (gnus-range-map 3572 (gnus-range-map
3572 (lambda (article) 3573 (lambda (article)
3573 (gnus-add-marked-articles group 'expire (list article)) 3574 (gnus-add-marked-articles group 'expire (list article))
@@ -4630,10 +4631,11 @@ This command may read the active file."
4630 (push n gnus-newsgroup-unselected)) 4631 (push n gnus-newsgroup-unselected))
4631 (setq n (1+ n))) 4632 (setq n (1+ n)))
4632 (setq gnus-newsgroup-unselected 4633 (setq gnus-newsgroup-unselected
4633 (nreverse gnus-newsgroup-unselected))))) 4634 (sort gnus-newsgroup-unselected '<)))))
4634 (gnus-activate-group group) 4635 (gnus-activate-group group)
4635 (gnus-group-make-articles-read group (list article)) 4636 (gnus-group-make-articles-read group (list article))
4636 (when (gnus-group-auto-expirable-p group) 4637 (when (and (gnus-group-auto-expirable-p group)
4638 (not (gnus-group-read-only-p group)))
4637 (gnus-add-marked-articles 4639 (gnus-add-marked-articles
4638 group 'expire (list article)))))) 4640 group 'expire (list article))))))
4639 4641
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 3ec443743df..2d75c35158a 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -5715,7 +5715,8 @@ If SELECT-ARTICLES, only select those articles from GROUP."
5715 (gnus-summary-remove-list-identifiers) 5715 (gnus-summary-remove-list-identifiers)
5716 ;; Check whether auto-expire is to be done in this group. 5716 ;; Check whether auto-expire is to be done in this group.
5717 (setq gnus-newsgroup-auto-expire 5717 (setq gnus-newsgroup-auto-expire
5718 (gnus-group-auto-expirable-p group)) 5718 (and (gnus-group-auto-expirable-p group)
5719 (not (gnus-group-read-only-p group))))
5719 ;; Set up the article buffer now, if necessary. 5720 ;; Set up the article buffer now, if necessary.
5720 (unless (and gnus-single-article-buffer 5721 (unless (and gnus-single-article-buffer
5721 (equal gnus-article-buffer "*Article*")) 5722 (equal gnus-article-buffer "*Article*"))
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 4d08baa674c..58740c32e9c 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -1091,7 +1091,7 @@ Note: Many newsgroups frown upon nontraditional reply styles. You
1091probably want to set this variable only for specific groups, 1091probably want to set this variable only for specific groups,
1092e.g. using `gnus-posting-styles': 1092e.g. using `gnus-posting-styles':
1093 1093
1094 (eval (set (make-local-variable 'message-cite-reply-above) 'above))" 1094 (eval (set (make-local-variable 'message-cite-reply-position) 'above))"
1095 :type '(choice (const :tag "Reply inline" 'traditional) 1095 :type '(choice (const :tag "Reply inline" 'traditional)
1096 (const :tag "Reply above" 'above) 1096 (const :tag "Reply above" 'above)
1097 (const :tag "Reply below" 'below)) 1097 (const :tag "Reply below" 'below))
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index 6882ed63135..dc8b38b8f9a 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -190,7 +190,7 @@ textual parts.")
190 (let (article bytes lines size string) 190 (let (article bytes lines size string)
191 (block nil 191 (block nil
192 (while (not (eobp)) 192 (while (not (eobp))
193 (while (not (looking-at "^\\* [0-9]+ FETCH.*UID \\([0-9]+\\)")) 193 (while (not (looking-at "\\* [0-9]+ FETCH.+UID \\([0-9]+\\)"))
194 (delete-region (point) (progn (forward-line 1) (point))) 194 (delete-region (point) (progn (forward-line 1) (point)))
195 (when (eobp) 195 (when (eobp)
196 (return))) 196 (return)))
@@ -1904,7 +1904,7 @@ textual parts.")
1904 (let (article bytes) 1904 (let (article bytes)
1905 (block nil 1905 (block nil
1906 (while (not (eobp)) 1906 (while (not (eobp))
1907 (while (not (looking-at "^\\* [0-9]+ FETCH.*UID \\([0-9]+\\)")) 1907 (while (not (looking-at "\\* [0-9]+ FETCH.+UID \\([0-9]+\\)"))
1908 (delete-region (point) (progn (forward-line 1) (point))) 1908 (delete-region (point) (progn (forward-line 1) (point)))
1909 (when (eobp) 1909 (when (eobp)
1910 (return))) 1910 (return)))
diff --git a/lisp/gnus/nnvirtual.el b/lisp/gnus/nnvirtual.el
index 0cc53ad2332..ea64c247d99 100644
--- a/lisp/gnus/nnvirtual.el
+++ b/lisp/gnus/nnvirtual.el
@@ -194,10 +194,11 @@ component group will show up when you enter the virtual group.")
194 (when buffer 194 (when buffer
195 (set-buffer buffer)) 195 (set-buffer buffer))
196 (let* ((gnus-override-method nil) 196 (let* ((gnus-override-method nil)
197 (method (gnus-find-method-for-group 197 (gnus-command-method
198 nnvirtual-last-accessed-component-group))) 198 (gnus-find-method-for-group
199 (funcall (gnus-get-function method 'request-article) 199 nnvirtual-last-accessed-component-group)))
200 article nil (nth 1 method) buffer))))) 200 (funcall (gnus-get-function gnus-command-method 'request-article)
201 article nil (nth 1 gnus-command-method) buffer)))))
201 ;; This is a fetch by number. 202 ;; This is a fetch by number.
202 (let* ((amap (nnvirtual-map-article article)) 203 (let* ((amap (nnvirtual-map-article article))
203 (cgroup (car amap))) 204 (cgroup (car amap)))
diff --git a/lisp/gnus/pop3.el b/lisp/gnus/pop3.el
index 6f12d3d63e1..90e11b3ca8f 100644
--- a/lisp/gnus/pop3.el
+++ b/lisp/gnus/pop3.el
@@ -319,6 +319,7 @@ Returns the process associated with the connection."
319 (substring response (or (string-match "<" response) 0) 319 (substring response (or (string-match "<" response) 0)
320 (+ 1 (or (string-match ">" response) -1))))) 320 (+ 1 (or (string-match ">" response) -1)))))
321 (pop3-set-process-query-on-exit-flag (car result) nil) 321 (pop3-set-process-query-on-exit-flag (car result) nil)
322 (erase-buffer)
322 (car result))))) 323 (car result)))))
323 324
324;; Support functions 325;; Support functions
@@ -514,6 +515,8 @@ Otherwise, return the size of the message-id MSG"
514 (let ((start pop3-read-point) end) 515 (let ((start pop3-read-point) end)
515 (with-current-buffer (process-buffer process) 516 (with-current-buffer (process-buffer process)
516 (while (not (re-search-forward "^\\.\r\n" nil t)) 517 (while (not (re-search-forward "^\\.\r\n" nil t))
518 (unless (memq (process-status process) '(open run))
519 (error "pop3 server closed the connection"))
517 (pop3-accept-process-output process) 520 (pop3-accept-process-output process)
518 (goto-char start)) 521 (goto-char start))
519 (setq pop3-read-point (point-marker)) 522 (setq pop3-read-point (point-marker))