diff options
| author | Lars Magne Ingebrigtsen | 2010-09-06 00:15:13 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-09-06 00:15:13 +0000 |
| commit | c15c8017fd78dedd70157bc7610cb233b9c50501 (patch) | |
| tree | 65c6de68020ae29e72f4d1843c36a731dcccd360 | |
| parent | a131b9b876d46b339ef9a64a1fbc53977a4bd46b (diff) | |
| download | emacs-c15c8017fd78dedd70157bc7610cb233b9c50501.tar.gz emacs-c15c8017fd78dedd70157bc7610cb233b9c50501.zip | |
gnus-start.el (gnus-activate-group): Take an optional parameter to say that you don't want to call gnus-request-group with don-check, but do check the reponse. This is for virtual groups only.
| -rw-r--r-- | lisp/gnus/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/gnus/gnus-start.el | 11 |
2 files changed, 11 insertions, 4 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 0a6c76a1d2d..419c26a02dc 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2010-09-05 Lars Magne Ingebrigtsen <larsi@gnus.org> | 1 | 2010-09-05 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 2 | ||
| 3 | * gnus-start.el (gnus-activate-group): Take an optional parameter to | ||
| 4 | say that you don't want to call gnus-request-group with don-check, but | ||
| 5 | do check the reponse. This is for virtual groups only. | ||
| 6 | |||
| 3 | * nnimap.el (nnimap-request-list): Servers may return \NoSelect | 7 | * nnimap.el (nnimap-request-list): Servers may return \NoSelect |
| 4 | case-insensitively. | 8 | case-insensitively. |
| 5 | (nnimap-debug): Removed. | 9 | (nnimap-debug): Removed. |
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el index c3c7241b3c3..f99a1dcd929 100644 --- a/lisp/gnus/gnus-start.el +++ b/lisp/gnus/gnus-start.el | |||
| @@ -1526,7 +1526,8 @@ newsgroup." | |||
| 1526 | (when (> (cdr cache-active) (cdr active)) | 1526 | (when (> (cdr cache-active) (cdr active)) |
| 1527 | (setcdr active (cdr cache-active)))))))) | 1527 | (setcdr active (cdr cache-active)))))))) |
| 1528 | 1528 | ||
| 1529 | (defun gnus-activate-group (group &optional scan dont-check method) | 1529 | (defun gnus-activate-group (group &optional scan dont-check method |
| 1530 | dont-sub-check) | ||
| 1530 | "Check whether a group has been activated or not. | 1531 | "Check whether a group has been activated or not. |
| 1531 | If SCAN, request a scan of that group as well." | 1532 | If SCAN, request a scan of that group as well." |
| 1532 | (let ((method (or method (inline (gnus-find-method-for-group group)))) | 1533 | (let ((method (or method (inline (gnus-find-method-for-group group)))) |
| @@ -1541,9 +1542,11 @@ If SCAN, request a scan of that group as well." | |||
| 1541 | (gnus-request-scan group method)) | 1542 | (gnus-request-scan group method)) |
| 1542 | t) | 1543 | t) |
| 1543 | (if (or debug-on-error debug-on-quit) | 1544 | (if (or debug-on-error debug-on-quit) |
| 1544 | (inline (gnus-request-group group dont-check method)) | 1545 | (inline (gnus-request-group group (or dont-sub-check dont-check) |
| 1546 | method)) | ||
| 1545 | (condition-case nil | 1547 | (condition-case nil |
| 1546 | (inline (gnus-request-group group dont-check method)) | 1548 | (inline (gnus-request-group group (or dont-sub-check dont-check) |
| 1549 | method)) | ||
| 1547 | ;;(error nil) | 1550 | ;;(error nil) |
| 1548 | (quit | 1551 | (quit |
| 1549 | (message "Quit activating %s" group) | 1552 | (message "Quit activating %s" group) |
| @@ -1796,7 +1799,7 @@ If SCAN, request a scan of that group as well." | |||
| 1796 | (gnus-read-active-file-1 method nil)) | 1799 | (gnus-read-active-file-1 method nil)) |
| 1797 | (t | 1800 | (t |
| 1798 | (dolist (info infos) | 1801 | (dolist (info infos) |
| 1799 | (gnus-activate-group (gnus-info-group info) nil t method)))))) | 1802 | (gnus-activate-group (gnus-info-group info) nil nil method t)))))) |
| 1800 | 1803 | ||
| 1801 | ;; Create a hash table out of the newsrc alist. The `car's of the | 1804 | ;; Create a hash table out of the newsrc alist. The `car's of the |
| 1802 | ;; alist elements are used as keys. | 1805 | ;; alist elements are used as keys. |