[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r101359: nnvirtual.el (nnvirtual-crea
From: |
Katsumi Yamaoka |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r101359: nnvirtual.el (nnvirtual-create-mapping): Use the active info we already have if we're in a main Gnus `g' run. |
Date: |
Sun, 05 Sep 2010 23:20:25 +0000 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 101359
author: Lars Magne Ingebrigtsen <address@hidden>
committer: Katsumi Yamaoka <address@hidden>
branch nick: trunk
timestamp: Sun 2010-09-05 23:20:25 +0000
message:
nnvirtual.el (nnvirtual-create-mapping): Use the active info we already have
if we're in a main Gnus `g' run.
modified:
lisp/gnus/ChangeLog
lisp/gnus/gnus-start.el
lisp/gnus/nnvirtual.el
=== modified file 'lisp/gnus/ChangeLog'
--- a/lisp/gnus/ChangeLog 2010-09-05 23:13:43 +0000
+++ b/lisp/gnus/ChangeLog 2010-09-05 23:20:25 +0000
@@ -1,5 +1,8 @@
2010-09-05 Lars Magne Ingebrigtsen <address@hidden>
+ * nnvirtual.el (nnvirtual-create-mapping): Use the active info we
+ already have if we're in a main Gnus `g' run.
+
* gnus-start.el (gnus-method-rank): Get info for virtual groups last.
2010-09-05 Katsumi Yamaoka <address@hidden>
=== modified file 'lisp/gnus/gnus-start.el'
--- a/lisp/gnus/gnus-start.el 2010-09-05 23:13:43 +0000
+++ b/lisp/gnus/gnus-start.el 2010-09-05 23:20:25 +0000
@@ -1796,7 +1796,7 @@
(gnus-read-active-file-1 method nil))
(t
(dolist (info infos)
- (gnus-activate-group (gnus-info-group info) nil nil method))))))
+ (gnus-activate-group (gnus-info-group info) nil t method))))))
;; Create a hash table out of the newsrc alist. The `car's of the
;; alist elements are used as keys.
=== modified file 'lisp/gnus/nnvirtual.el'
--- a/lisp/gnus/nnvirtual.el 2010-09-05 00:34:16 +0000
+++ b/lisp/gnus/nnvirtual.el 2010-09-05 23:20:25 +0000
@@ -260,13 +260,11 @@
(nnheader-report 'nnvirtual "No component groups in %s" group))
(t
(setq nnvirtual-current-group group)
- (when (or (not dont-check)
- nnvirtual-always-rescan)
- (nnvirtual-create-mapping)
- (when nnvirtual-always-rescan
- (nnvirtual-request-update-info
- (nnvirtual-current-group)
- (gnus-get-info (nnvirtual-current-group)))))
+ (nnvirtual-create-mapping dont-check)
+ (when nnvirtual-always-rescan
+ (nnvirtual-request-update-info
+ (nnvirtual-current-group)
+ (gnus-get-info (nnvirtual-current-group))))
(nnheader-insert "211 %d 1 %d %s\n"
nnvirtual-mapping-len nnvirtual-mapping-len group))))
@@ -670,7 +668,7 @@
carticles))
-(defun nnvirtual-create-mapping ()
+(defun nnvirtual-create-mapping (dont-check)
"Build the tables necessary to map between component (group, article) to
virtual article.
Generate the set of read messages and marks for the virtual group
based on the marks on the component groups."
@@ -689,7 +687,9 @@
;; Into all-marks we put (g marks).
;; We also increment cnt and tot here, and compute M (max of sizes).
(mapc (lambda (g)
- (setq active (gnus-activate-group g)
+ (setq active (or (and dont-check
+ (gnus-active g))
+ (gnus-activate-group g))
min (car active)
max (cdr active))
(when (and active (>= max min) (not (zerop max)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r101359: nnvirtual.el (nnvirtual-create-mapping): Use the active info we already have if we're in a main Gnus `g' run.,
Katsumi Yamaoka <=