diff options
| author | Lars Magne Ingebrigtsen | 2010-11-01 22:21:10 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-11-01 22:21:10 +0000 |
| commit | 9310f19da1b42a9da2f4cde15e605d04b9420655 (patch) | |
| tree | 3185d2ba0f1b092ba45c661a82e88bba9a185d16 | |
| parent | 91fd0b72816c99c0425ab783f6502a3e11f00956 (diff) | |
| download | emacs-9310f19da1b42a9da2f4cde15e605d04b9420655.tar.gz emacs-9310f19da1b42a9da2f4cde15e605d04b9420655.zip | |
Merge changes made in Gnus trunk.
nnimap.el (nnimap-parse-line): Don't bug out oddly formed replies (bug #7311).
gnus-cite.el (gnus-article-fill-cited-article): Minimize the long-lines case by only filling the long lines.
gnus-start.el (gnus-ask-server-for-new-groups): Return the new groups.
gnus-group.el (gnus-group-find-new-groups): Display all the new groups.
gnus-start.el (gnus-find-new-newsgroups): Return the list of new groups.
nnimap.el (nnimap-request-group): Store the new updated info.
nnimap.el (nnimap-request-group): Select the group when we don't know whether it exists or not.
| -rw-r--r-- | lisp/gnus/ChangeLog | 21 | ||||
| -rw-r--r-- | lisp/gnus/gnus-cite.el | 11 | ||||
| -rw-r--r-- | lisp/gnus/gnus-group.el | 10 | ||||
| -rw-r--r-- | lisp/gnus/gnus-start.el | 5 | ||||
| -rw-r--r-- | lisp/gnus/nnimap.el | 14 |
5 files changed, 52 insertions, 9 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 4ebf11251b9..d233a667126 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,24 @@ | |||
| 1 | 2010-11-01 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * nnimap.el (nnimap-request-group): Store the new updated info. | ||
| 4 | (nnimap-request-group): Select the group when we don't know whether it | ||
| 5 | exists or not. | ||
| 6 | |||
| 7 | * gnus-start.el (gnus-ask-server-for-new-groups): Return the new | ||
| 8 | groups. | ||
| 9 | |||
| 10 | * gnus-group.el (gnus-group-find-new-groups): Display all the new | ||
| 11 | groups. | ||
| 12 | |||
| 13 | * gnus-start.el (gnus-find-new-newsgroups): Return the list of new | ||
| 14 | groups. | ||
| 15 | |||
| 16 | * gnus-cite.el (gnus-article-fill-cited-article): Minimize the | ||
| 17 | long-lines case by only filling the long lines. | ||
| 18 | |||
| 19 | * nnimap.el (nnimap-parse-line): Don't bug out oddly formed replies | ||
| 20 | (bug #7311). | ||
| 21 | |||
| 1 | 2010-11-01 Katsumi Yamaoka <yamaoka@jpl.org> | 22 | 2010-11-01 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 23 | ||
| 3 | * shr.el: No need to declare `declare-function' since shr.el is for | 24 | * shr.el: No need to declare `declare-function' since shr.el is for |
diff --git a/lisp/gnus/gnus-cite.el b/lisp/gnus/gnus-cite.el index a010a833e9d..2d44e36258a 100644 --- a/lisp/gnus/gnus-cite.el +++ b/lisp/gnus/gnus-cite.el | |||
| @@ -545,7 +545,16 @@ longer than the frame width." | |||
| 545 | (unless do-fill | 545 | (unless do-fill |
| 546 | (setq do-fill (gnus-article-foldable-buffer (cdar marks)))) | 546 | (setq do-fill (gnus-article-foldable-buffer (cdar marks)))) |
| 547 | (when do-fill | 547 | (when do-fill |
| 548 | (fill-region (point-min) (point-max)))) | 548 | (if (not long-lines) |
| 549 | (fill-region (point-min) (point-max)) | ||
| 550 | (goto-char (point-min)) | ||
| 551 | (while (not (eobp)) | ||
| 552 | (end-of-line) | ||
| 553 | (when (> (current-column) (frame-width)) | ||
| 554 | (save-restriction | ||
| 555 | (narrow-to-region (line-beginning-position) (point)) | ||
| 556 | (fill-region (point-min) (point-max)))) | ||
| 557 | (forward-line 1))))) | ||
| 549 | (set-marker (caar marks) nil) | 558 | (set-marker (caar marks) nil) |
| 550 | (setq marks (cdr marks))) | 559 | (setq marks (cdr marks))) |
| 551 | (when marks | 560 | (when marks |
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el index 24215a61950..5a65d30ec1c 100644 --- a/lisp/gnus/gnus-group.el +++ b/lisp/gnus/gnus-group.el | |||
| @@ -4186,8 +4186,14 @@ groups. | |||
| 4186 | With 2 C-u's, use most complete method possible to query the server | 4186 | With 2 C-u's, use most complete method possible to query the server |
| 4187 | for new groups, and subscribe the new groups as zombies." | 4187 | for new groups, and subscribe the new groups as zombies." |
| 4188 | (interactive "p") | 4188 | (interactive "p") |
| 4189 | (gnus-find-new-newsgroups (or arg 1)) | 4189 | (let ((new-groups (gnus-find-new-newsgroups (or arg 1))) |
| 4190 | (gnus-group-list-groups)) | 4190 | current-group) |
| 4191 | (gnus-group-list-groups) | ||
| 4192 | (setq current-group (gnus-group-group-name)) | ||
| 4193 | (dolist (group new-groups) | ||
| 4194 | (gnus-group-jump-to-group group)) | ||
| 4195 | (when current-group | ||
| 4196 | (gnus-group-jump-to-group current-group)))) | ||
| 4191 | 4197 | ||
| 4192 | (defun gnus-group-edit-global-kill (&optional article group) | 4198 | (defun gnus-group-edit-global-kill (&optional article group) |
| 4193 | "Edit the global kill file. | 4199 | "Edit the global kill file. |
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el index f480d304d4b..2466ddd28b7 100644 --- a/lisp/gnus/gnus-start.el +++ b/lisp/gnus/gnus-start.el | |||
| @@ -1145,7 +1145,8 @@ for new groups, and subscribe the new groups as zombies." | |||
| 1145 | (if (> groups 0) | 1145 | (if (> groups 0) |
| 1146 | (gnus-message 5 "%d new newsgroup%s arrived." | 1146 | (gnus-message 5 "%d new newsgroup%s arrived." |
| 1147 | groups (if (> groups 1) "s have" " has")) | 1147 | groups (if (> groups 1) "s have" " has")) |
| 1148 | (gnus-message 5 "No new newsgroups.")))))) | 1148 | (gnus-message 5 "No new newsgroups.")) |
| 1149 | groups)))) | ||
| 1149 | 1150 | ||
| 1150 | (defun gnus-matches-options-n (group) | 1151 | (defun gnus-matches-options-n (group) |
| 1151 | ;; Returns `subscribe' if the group is to be unconditionally | 1152 | ;; Returns `subscribe' if the group is to be unconditionally |
| @@ -1243,7 +1244,7 @@ for new groups, and subscribe the new groups as zombies." | |||
| 1243 | (gnus-message 5 "No new newsgroups")) | 1244 | (gnus-message 5 "No new newsgroups")) |
| 1244 | (when got-new | 1245 | (when got-new |
| 1245 | (setq gnus-newsrc-last-checked-date new-date)) | 1246 | (setq gnus-newsrc-last-checked-date new-date)) |
| 1246 | got-new)) | 1247 | new-newsgroups)) |
| 1247 | 1248 | ||
| 1248 | (defun gnus-subscribe-group (group &optional previous method) | 1249 | (defun gnus-subscribe-group (group &optional previous method) |
| 1249 | "Subscribe GROUP and put it after PREVIOUS." | 1250 | "Subscribe GROUP and put it after PREVIOUS." |
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index ea8a0fc95e5..ef7831caa29 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el | |||
| @@ -669,7 +669,8 @@ textual parts.") | |||
| 669 | (let ((result (nnimap-possibly-change-group | 669 | (let ((result (nnimap-possibly-change-group |
| 670 | ;; Don't SELECT the group if we're going to select it | 670 | ;; Don't SELECT the group if we're going to select it |
| 671 | ;; later, anyway. | 671 | ;; later, anyway. |
| 672 | (if dont-check | 672 | (if (and dont-check |
| 673 | (assoc group nnimap-current-infos)) | ||
| 673 | nil | 674 | nil |
| 674 | group) | 675 | group) |
| 675 | server)) | 676 | server)) |
| @@ -698,7 +699,8 @@ textual parts.") | |||
| 698 | 1 group "SELECT"))))) | 699 | 1 group "SELECT"))))) |
| 699 | (when (and info | 700 | (when (and info |
| 700 | marks) | 701 | marks) |
| 701 | (nnimap-update-infos marks (list info))) | 702 | (nnimap-update-infos marks (list info)) |
| 703 | (nnimap-store-info info (gnus-active (gnus-info-group info)))) | ||
| 702 | (goto-char (point-max)) | 704 | (goto-char (point-max)) |
| 703 | (let ((uidnext (nth 5 (car marks)))) | 705 | (let ((uidnext (nth 5 (car marks)))) |
| 704 | (setq high (or (if uidnext | 706 | (setq high (or (if uidnext |
| @@ -1555,12 +1557,16 @@ textual parts.") | |||
| 1555 | (split-string | 1557 | (split-string |
| 1556 | (buffer-substring | 1558 | (buffer-substring |
| 1557 | (1+ (point)) | 1559 | (1+ (point)) |
| 1558 | (1- (search-forward "]" (line-end-position) 'move))))) | 1560 | (if (search-forward "]" (line-end-position) 'move) |
| 1561 | (1- (point)) | ||
| 1562 | (point))))) | ||
| 1559 | ((eql char ?\() | 1563 | ((eql char ?\() |
| 1560 | (split-string | 1564 | (split-string |
| 1561 | (buffer-substring | 1565 | (buffer-substring |
| 1562 | (1+ (point)) | 1566 | (1+ (point)) |
| 1563 | (1- (search-forward ")" (line-end-position) 'move))))) | 1567 | (if (search-forward ")" (line-end-position) 'move) |
| 1568 | (1- (point)) | ||
| 1569 | (point))))) | ||
| 1564 | ((eql char ?\") | 1570 | ((eql char ?\") |
| 1565 | (forward-char 1) | 1571 | (forward-char 1) |
| 1566 | (buffer-substring | 1572 | (buffer-substring |