From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/9321 Path: main.gmane.org!not-for-mail From: David Moore Newsgroups: gmane.emacs.gnus.general Subject: Re: nnvirtual bug back in 0.79??? Date: 08 Jan 1997 15:22:29 -0800 Sender: dmoore@sdnp5.ucsd.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035149364 17801 80.91.224.250 (20 Oct 2002 21:29:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:29:24 +0000 (UTC) Return-Path: Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.8.4/8.8.4) with SMTP id PAA04463 for ; Wed, 8 Jan 1997 15:35:42 -0800 Original-Received: from UCSD.EDU (mailbox2.ucsd.edu [132.239.1.54]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Thu, 9 Jan 1997 00:24:42 +0100 Original-Received: from sdnp5.ucsd.edu (sdnp5.ucsd.edu [132.239.79.10]) by UCSD.EDU (8.8.3/8.6.9) with SMTP id PAA14337 for ; Wed, 8 Jan 1997 15:24:40 -0800 (PST) Original-Received: by sdnp5.ucsd.edu (SMI-8.6/SMI-SVR4) id PAA21546; Wed, 8 Jan 1997 15:22:30 -0800 Original-To: "(ding) Gnus Mailing List" X-Face: "oX;zS#-JU$-,WKSzG.1gGE]x^cIg!hW.dq>.f6pzS^A+(k!T|M:}5{_%>Io<>L&{hO7W4cicOQ|>/lZ1G(m%7iaCf,6Qgk0%%Bz7b2-W3jd0m_UG\Y;?]}4s0O-U)uox>P3JN)9cm]O\@,vy2e{`3pb!"pqmRy3peB90*2L Mail-Copies-To: never In-Reply-To: Han Pilmeyer's message of 08 Jan 1997 22:40:59 +0100 Original-Lines: 108 X-Mailer: Red Gnus v0.79/XEmacs 19.15 Xref: main.gmane.org gmane.emacs.gnus.general:9321 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:9321 Han Pilmeyer writes: > Each time I get new mail into my mail groups (using "2g") I noticed > that my nnvirtual groups (news at level 3) revert back to their old > unread count. I then catch them up (with "c"), but as soon as I get > new mail they go back to unread mail again and again. > > Is my computer haunted? No, here's a patch to nnvirtual. Basically a line in gnus-start was changed from (gnus-get-unread-articles-in-group info active) to (gnus-get-unread-articles-in-group info active t) which caused the problems. If you apply the patches, be sure to re-bytecompile the files. And you need to entirely quit your emacs, don't try to reload them. Generally various random nnoo madness results otherwise. *** ChangeLog.orig Wed Jan 8 11:34:02 1997 --- ChangeLog Wed Jan 8 15:20:49 1997 *************** *** 1,3 **** --- 1,10 ---- + Wed Jan 8 11:34:07 1997 David Moore + + * nnvirtual.el (nnvirtual-info-installed): New variable. + (nnvirtual-open-server): Use it. + (nnvirtual-request-update-info): ditto. + (nnvirtual-request-update-info): ditto. + Mon Jan 6 11:23:05 1997 Lars Magne Ingebrigtsen * nnmail.el (nnmail-process-babyl-mail-format): Widen at the right *** nnvirtual.el.orig Wed Jan 8 15:06:29 1997 --- nnvirtual.el Wed Jan 8 15:09:33 1997 *************** *** 77,82 **** --- 77,85 ---- (defvoo nnvirtual-mapping-marks nil "Compressed marks alist for the virtual group as computed from the marks of individual component groups.") + (defvoo nnvirtual-info-installed nil + "T if we have already installed the group info for this group, and shouldn't blast over it again.") + (defvoo nnvirtual-status-string "") (eval-and-compile *************** *** 214,220 **** nnvirtual-mapping-offsets nil nnvirtual-mapping-len 0 nnvirtual-mapping-reads nil ! nnvirtual-mapping-marks nil) (when nnvirtual-component-regexp ;; Go through the newsrc alist and find all component groups. (let ((newsrc (cdr gnus-newsrc-alist)) --- 217,224 ---- nnvirtual-mapping-offsets nil nnvirtual-mapping-len 0 nnvirtual-mapping-reads nil ! nnvirtual-mapping-marks nil ! nnvirtual-info-installed nil) (when nnvirtual-component-regexp ;; Go through the newsrc alist and find all component groups. (let ((newsrc (cdr gnus-newsrc-alist)) *************** *** 285,291 **** (deffoo nnvirtual-request-update-info (group info &optional server) ! (when (nnvirtual-possibly-change-server server) ;; Install the precomputed lists atomically, so the virtual group ;; is not left in a half-way state in case of C-g. (gnus-atomic-progn --- 289,296 ---- (deffoo nnvirtual-request-update-info (group info &optional server) ! (when (and (nnvirtual-possibly-change-server server) ! (not nnvirtual-info-installed)) ;; Install the precomputed lists atomically, so the virtual group ;; is not left in a half-way state in case of C-g. (gnus-atomic-progn *************** *** 293,299 **** (if (nthcdr 3 info) (setcar (nthcdr 3 info) nnvirtual-mapping-marks) (when nnvirtual-mapping-marks ! (setcdr (nthcdr 2 info) (list nnvirtual-mapping-marks))))) t)) --- 298,305 ---- (if (nthcdr 3 info) (setcar (nthcdr 3 info) nnvirtual-mapping-marks) (when nnvirtual-mapping-marks ! (setcdr (nthcdr 2 info) (list nnvirtual-mapping-marks)))) ! (setq nnvirtual-info-installed t)) t)) -- David Moore | Computer Systems Lab __o UCSD Dept. Computer Science - 0114 | Work: (619) 534-8604 _ \<,_ La Jolla, CA 92093-0114 | Fax: (619) 534-1445 (_)/ (_) |