aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love1999-10-23 12:00:04 +0000
committerDave Love1999-10-23 12:00:04 +0000
commit54b029480ee817e435e1a8d2f668430d2dd4e236 (patch)
tree1d569f9c6e29b77b0ce21a9c030fca928ccdcea0
parent83a4cf1d1433970ebf688c013b59c4ef697b9bba (diff)
downloademacs-54b029480ee817e435e1a8d2f668430d2dd4e236.tar.gz
emacs-54b029480ee817e435e1a8d2f668430d2dd4e236.zip
(nnvirtual-create-mapping): Don't use mapc.
-rw-r--r--lisp/gnus/ChangeLog4
-rw-r--r--lisp/gnus/nnvirtual.el42
2 files changed, 25 insertions, 21 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 3545e2871e6..872f1a2cabe 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,7 @@
11999-10-23 Dave Love <fx@gnu.org>
2
3 * nnvirtual.el (nnvirtual-create-mapping): Don't use mapc.
4
11999-10-19 Dave Love <fx@gnu.org> 51999-10-19 Dave Love <fx@gnu.org>
2 6
3 * pop3.el: Merge changes from version `1.3s' which we weren't sent. 7 * pop3.el: Merge changes from version `1.3s' which we weren't sent.
diff --git a/lisp/gnus/nnvirtual.el b/lisp/gnus/nnvirtual.el
index 243717f5baf..510cd1b0517 100644
--- a/lisp/gnus/nnvirtual.el
+++ b/lisp/gnus/nnvirtual.el
@@ -671,27 +671,27 @@ based on the marks on the component groups."
671 ;; Into all-unreads we put (g unreads). 671 ;; Into all-unreads we put (g unreads).
672 ;; Into all-marks we put (g marks). 672 ;; Into all-marks we put (g marks).
673 ;; We also increment cnt and tot here, and compute M (max of sizes). 673 ;; We also increment cnt and tot here, and compute M (max of sizes).
674 (mapc (lambda (g) 674 (mapcar (lambda (g)
675 (setq active (gnus-activate-group g) 675 (setq active (gnus-activate-group g)
676 min (car active) 676 min (car active)
677 max (cdr active)) 677 max (cdr active))
678 (when (and active (>= max min) (not (zerop max))) 678 (when (and active (>= max min) (not (zerop max)))
679 ;; store active information 679 ;; store active information
680 (push (list g (- max min -1) max) actives) 680 (push (list g (- max min -1) max) actives)
681 ;; collect unread/mark info for later 681 ;; collect unread/mark info for later
682 (setq unreads (gnus-list-of-unread-articles g)) 682 (setq unreads (gnus-list-of-unread-articles g))
683 (setq marks (gnus-info-marks (gnus-get-info g))) 683 (setq marks (gnus-info-marks (gnus-get-info g)))
684 (when gnus-use-cache 684 (when gnus-use-cache
685 (push (cons 'cache 685 (push (cons 'cache
686 (gnus-cache-articles-in-group g)) 686 (gnus-cache-articles-in-group g))
687 marks)) 687 marks))
688 (push (cons g unreads) all-unreads) 688 (push (cons g unreads) all-unreads)
689 (push (cons g marks) all-marks) 689 (push (cons g marks) all-marks)
690 ;; count groups, total #articles, and max size 690 ;; count groups, total #articles, and max size
691 (setq size (- max min -1)) 691 (setq size (- max min -1))
692 (setq cnt (1+ cnt) 692 (setq cnt (1+ cnt)
693 tot (+ tot size) 693 tot (+ tot size)
694 M (max M size)))) 694 M (max M size))))
695 nnvirtual-component-groups) 695 nnvirtual-component-groups)
696 696
697 ;; Number of articles in the virtual group. 697 ;; Number of articles in the virtual group.