From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/42395 Path: main.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.emacs.gnus.general Subject: Re: problems with nnvirtual and marks Date: Mon, 21 Jan 2002 17:31:12 -0500 Organization: What did you have in mind? A short, blunt, human pyramid? 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 1035177639 11068 80.91.224.250 (21 Oct 2002 05:20:39 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 05:20:39 +0000 (UTC) Return-Path: Original-Received: (qmail 19746 invoked from network); 21 Jan 2002 22:32:00 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 21 Jan 2002 22:32:00 -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 16SmyV-0000tO-00; Mon, 21 Jan 2002 16:31:35 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 21 Jan 2002 16:31:29 -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 QAA01521 for ; Mon, 21 Jan 2002 16:31:18 -0600 (CST) Original-Received: (qmail 19742 invoked by alias); 21 Jan 2002 22:31:19 -0000 Original-Received: (qmail 19737 invoked from network); 21 Jan 2002 22:31:19 -0000 Original-Received: from multivac.student.cwru.edu (HELO multivac.cwru.edu) (qmailr@129.22.96.25) by gnus.org with SMTP; 21 Jan 2002 22:31:19 -0000 Original-Received: (qmail 15910 invoked by uid 500); 21 Jan 2002 22:31:34 -0000 Original-To: ding@gnus.org In-Reply-To: (Lars Magne Ingebrigtsen's message of "Sat, 19 Jan 2002 20:45:47 +0100") Mail-Copies-To: nobody Mail-Followup-To: ding@gnus.org Original-Lines: 23 User-Agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/20.7 (i386-redhat-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:42395 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:42395 Lars Magne Ingebrigtsen wrote: > dme@dme.org writes: >> (dolist (article (gnus-uncompress-range range)) ... > 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... nnmaildir iterates over a range list sort of like this: (while articles ;; "articles" is a range list (setq range (car articles) articles (cdr articles)) ;; pop off the first one (while (eq range (car articles)) (setq articles (cdr articles))) ;; skip duplicates ;; Set "num" to the first one in this range and "stop" to the last. (if (numberp range) (setq num range stop range) (setq num (car range) stop (cdr range))) ;; Process each one between "num" and "stop" (while (<= num stop) ... ;; do something with "num" (setq num (1+ num)))) paul