Gnus development mailing list
 help / color / mirror / Atom feed
From: Miles Bader <miles@gnu.org>
Subject: Re: No Gnus v0.4 / emacs-cvs terribly slowly operating on large nnfolders
Date: Tue, 21 Mar 2006 08:36:38 +0900	[thread overview]
Message-ID: <877j6og03d.fsf@catnip.gol.com> (raw)
In-Reply-To: <87acbku6yh.fsf@pacem.orebokech.com>

Romain Francoise <romain@orebokech.com> writes:
> -	(while (and (search-forward marker nil t)
> -		    (re-search-forward number nil t))
> -	  (let ((newnum (string-to-number (match-string 0))))
> +      (let ((head (concat "\n" nnfolder-article-marker "\\([0-9]+\\)"))
> +	     numbers)
> +	(while (re-search-forward head nil t)
> +	  (let ((newnum (string-to-number (match-string 1))))

The replacement doesn't seem to do exactly the same thing:  in the
original code, it starts searching for [0-9]+ after finding the article
marker, but there can be intervening characters (including newlines).
[I dunno whether the format of the means that the two should actually be
immediately adjacent,]

Also you probably want to regexp-quote nnfolder-article-marker.

-Miles
-- 
`Suppose Korea goes to the World Cup final against Japan and wins,' Moon said.
`All the past could be forgiven.'   [NYT]




  parent reply	other threads:[~2006-03-20 23:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-20  0:23 Elias Oltmanns
2006-03-20  6:02 ` Daniel Pittman
2006-03-20  9:52   ` Elias Oltmanns
2006-03-20 11:30     ` Daniel Pittman
2006-03-20 15:25       ` Elias Oltmanns
2006-03-20 21:44         ` Romain Francoise
2006-03-20 23:33           ` Elias Oltmanns
2006-03-21 12:29             ` Romain Francoise
2006-03-20 23:36           ` Miles Bader [this message]
2006-03-21 12:13             ` Romain Francoise
2006-03-22  1:07           ` James Cloos

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=877j6og03d.fsf@catnip.gol.com \
    --to=miles@gnu.org \
    /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).