From: prj@po.cwru.edu (Paul Jarc)
Subject: Re: problems with nnvirtual and marks
Date: Mon, 21 Jan 2002 17:31:12 -0500 [thread overview]
Message-ID: <m3sn8zmj3t.fsf@multivac.cwru.edu> (raw)
In-Reply-To: <m3d706w2dw.fsf@quimbies.gnus.org> (Lars Magne Ingebrigtsen's message of "Sat, 19 Jan 2002 20:45:47 +0100")
Lars Magne Ingebrigtsen <larsi@gnus.org> 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
prev parent reply other threads:[~2002-01-21 22:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-03 13:18 dme
2002-01-07 16:24 ` dme
2002-01-19 19:45 ` Lars Magne Ingebrigtsen
2002-01-21 22:31 ` Paul Jarc [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3sn8zmj3t.fsf@multivac.cwru.edu \
--to=prj@po.cwru.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).