From: kai.grossjohann@uni-duisburg.de (Kai Großjohann)
Subject: Re: Agent gone mad?
Date: Tue, 22 Oct 2002 22:07:07 +0200 [thread overview]
Message-ID: <847kgautjo.fsf@crybaby.cs.uni-dortmund.de> (raw)
In-Reply-To: <87k7kanvb8.fsf@enberg.org>
Henrik Enberg <henrik@enberg.org> writes:
> Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:
>
>> Henrik Enberg <henrik@enberg.org> writes:
>>
>>> Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:
>>>
>>>> (when (<= low high)
>>>> (setq articles (gnus-list-range-intersection
>>>> articles (list (cons low high)))))))
>>>>
>>> Whee, it works when I remove that condition. Both with
>>> `gnus-agent-consider-all-articles' set to nil and t. `low' is indeed
>>> higher than `high' for my groups.
>>
>> Fascinating. What are those values, more precisely?
>
> Running the below function to mimic the behaviour in the above code, I
> always get "high" as 1 less than "low", so the when clause will never
> be executed.
>
> (defun high/low ()
> (interactive)
> (let ((low (1+ (caar (last gnus-agent-article-alist))))
> (high (cdr (gnus-active gnus-newsgroup-name))))
> (message "high = %s, low = %s" high low)))
Gah?
>> I found that (gnus-list-range-intersection '(1 2 3 4 5) '((5 . 4)))
>> evals to nil, for instance. So when low > high, no articles were
>> downloaded in my case. What happens when you eval that expression?
>> If you get non-nil, then something is fishy in Gnus.
>
> I also get nil when I eval that.
Okay, so to summarize: when you remove the when condition, Gnus is
quick again.
But that's because it retrieves no articles, because
gnus-list-range-intersection returns nil.
So I'm not sure it's a good idea to remove the condition.
But I don't believe you were happy with the previous agent behavior
if it never retrieved any articles. So how about you go back to the
gnus-agent version before my messing around with it and see if that
retrieves any articles at all, and also examine the situation in the
code we're talking about.
Maybe I did something wrong when changing the code.
kai
--
~/.signature is: umop ap!sdn (Frank Nobis)
next prev parent reply other threads:[~2002-10-22 20:07 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-19 20:55 Henrik Enberg
2002-10-19 21:01 ` Henrik Enberg
2002-10-20 16:35 ` Kai Großjohann
2002-10-21 0:12 ` Henrik Enberg
2002-10-20 19:42 ` Kai Großjohann
2002-10-21 0:15 ` Henrik Enberg
2002-10-21 6:42 ` Kai Großjohann
2002-10-21 17:42 ` Henrik Enberg
2002-10-21 19:12 ` Kai Großjohann
2002-10-21 19:32 ` Henrik Enberg
2002-10-22 5:50 ` Kai Großjohann
2002-10-22 19:10 ` Henrik Enberg
2002-10-22 20:07 ` Kai Großjohann [this message]
2002-10-22 20:37 ` Henrik Enberg
2002-10-23 6:11 ` Kai Großjohann
2002-10-22 9:48 ` Simon Josefsson
2002-10-22 10:02 ` Kai Großjohann
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=847kgautjo.fsf@crybaby.cs.uni-dortmund.de \
--to=kai.grossjohann@uni-duisburg.de \
/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).