From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/42194 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: problems with nnvirtual and marks Date: Sat, 19 Jan 2002 20:45:47 +0100 Organization: Programmerer Ingebrigtsen Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035177468 10056 80.91.224.250 (21 Oct 2002 05:17:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 05:17:48 +0000 (UTC) Return-Path: Original-Received: (qmail 4383 invoked from network); 19 Jan 2002 19:46:27 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 19 Jan 2002 19:46:27 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16S1RO-0003Xx-00; Sat, 19 Jan 2002 13:46:14 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 19 Jan 2002 13:46:08 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id NAA17120 for ; Sat, 19 Jan 2002 13:45:56 -0600 (CST) Original-Received: (qmail 4374 invoked by alias); 19 Jan 2002 19:45:54 -0000 Original-Received: (qmail 4369 invoked from network); 19 Jan 2002 19:45:54 -0000 Original-Received: from ingebrigtsen.no (HELO quimby2.netfonds.no) (195.204.10.66) by gnus.org with SMTP; 19 Jan 2002 19:45:54 -0000 Original-Received: from news by quimby2.netfonds.no with local (Exim 3.12 #1 (Debian)) id 16S1Uc-0004Ve-00 for ; Sat, 19 Jan 2002 20:49:34 +0100 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 40 Original-NNTP-Posting-Host: quimbies.gnus.org Original-X-Trace: quimby2.netfonds.no 1011469774 17268 195.204.10.148 (19 Jan 2002 19:49:34 GMT) Original-X-Complaints-To: usenet@quimby2.netfonds.no Original-NNTP-Posting-Date: 19 Jan 2002 19:49:34 GMT Mail-Copies-To: never X-Now-Playing: Joni Mitchell's _The Hissing Of summer Lawns_: "Sweet Bird" User-Agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/21.1 (i686-pc-linux-gnu) X-Face: #^0z8g1>][JYOez*/E1g3kFVKmiQ]o,{jp|?t+bjE7Tp(>}.):h#/>BSa[V$+;G~Qh+(T{u 1#cs=J#W$!smP'Kyt3=zkSeg^>*$q'e;8hC(d_/'jTn2-CD(UAk}Jk]y;b^4Ddth\{s( Cancel-Lock: sha1:hspyhFFXoPOXM2lodfBHAmPYcpc= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:42194 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:42194 dme@dme.org writes: > For example, if a virtual group comprised of various nnml groups has a > ticked article, pressing "d" on the article in the nnvirtual group > doesn't result in the "tick" mark being removed from the corresponding > nnml group's .marks file (after quitting the group, gnus, emacs, etc). [...] > (deffoo nnvirtual-request-set-mark (group actions &optional server) > (nnvirtual-possibly-change-server server) > (dolist (action actions) > (let ((range (nth 0 action)) > (what (nth 1 action)) > (marks (nth 2 action))) > (assert (or (eq what 'add) (eq what 'del)) t > "Unknown request-set-mark action: %s" what) > (dolist (article (gnus-uncompress-range range)) > (let* ((amap (nnvirtual-map-article article)) > (cgroup (car amap))) > (dolist (mark marks) > (gnus-request-set-mark cgroup (list (list (list (cdr amap)) what marks))))))))) > This improves the specific problem mentioned above - the removal of > "tick" marks now passes through from nnvirtual to nnml and the .marks > file gets updated. > > However, when nnvirtual-request-set-mark is called with a large range > (over a couple of thousand articles), which seems to happen when I > enter a group sometimes, the iteration over the expanded range causes > emacs to go away and hide for a while (not sure how long - enough to > be "irritating", which probably means >10 seconds :-). Yes, this sounds like the right solution to the problems. But there should be a more efficient way of iterating over the articles than that... -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen