Gnus development mailing list
 help / color / mirror / Atom feed
From: Kevin Greiner <kgreiner@xpediantsolutions.com>
Subject: Re: PATCH II (for testing only): [Bug, Debian(?)] "g" goes not
Date: Wed, 10 Mar 2004 18:10:24 -0600	[thread overview]
Message-ID: <un06oqm4v.fsf@xpediantsolutions.com> (raw)
In-Reply-To: <ueks0r0jw.fsf_-_@xpediantsolutions.com>

Mark Plaksin <happy@mcplaksin.org> writes:

> Kevin Greiner <kgreiner@xpediantsolutions.com> writes:
>
>> Mark Plaksin <happy@mcplaksin.org> writes:
>>
>>> Kevin Greiner <kgreiner@xpediantsolutions.com> writes:
>>>
>>>> Mark Plaksin <happy@mcplaksin.org> writes:
>>>>
>>>>> Marcus Frings <iam-est-hora-surgere@despammed.com> writes:
>>>>>
>>>>>> By the way, this is also a bug on my FreeBSD system. Both on Debian and
>>>>>> FreeBSD I use GNU Emacs 21.3.1 (and `g' fails on all systems) but on two
>>>>>> different Windoze boxes I use a CVS Emacs (and there `g' works without
>>>>>> any problems). So the new code seems to work for CVS Emacs but fails on
>>>>>> the current stable Emacs. Can this really be Emacs-specific?
>>>>>
>>>>> I have the problem with both CVS Emacs and the wonderful multi-tty
>>>>> (http://lorentey.web.elte.hu/project/emacs.html) Emacs which is CVS
>>>>> Emacs plus patches.
>>>>
>>>> This patch should be applied to rev 7.8 (CVS head) of gnus-start.el.
>>>> Please let me know what the outcome is.  Finally, if this doesn't
>>>> help, please revert to CVS head.
>>>
>>> Thanks for the patch!
>>>
>>> It doesn't change the behavior for me.  Testing this I was also
>>> reminded that the problem affects my nnvirtual groups too.
>>>
>>> After patching, I exited Emacs, started up again, started Gnus (which
>>> automatically checks groups at level 1), and then did 5 G.  Gnus
>>> checked all groups at level 4 and below but no groups at level 5.  I
>>> have both nnimap and nnvirtual groups at level 5.  As before, going to
>>> the top topic and hitting ESC g (i.e., ESC < ESC g) checks all groups at
>>> all levels.
>>
>> Well, I tried being a little smarter and did learn one fact.  The code
>> that Lars patched in gnus-start and that I re-patched in my previous
>> patch is never used when you do ESC < ESC g as you described.
>>
>> That would appear to indicate that your problems are being caused by
>> the rather innocuous addition of two inline declarations in gnus.el.
>> If so, the problem is more of an emacs bug that gnus, which would help
>> explain why it is only seen on certain platforms.
>>
>> All right, enough talk.  Here's the patch for gnus.el.  As before,
>> apply it to the current revision of gnus.el.  What is different is
>> that you MUST delete all *.elc files before compiling gnus.  The
>> reason is that gnus-secondary-method-p is an inline function (a
>> defsubst) which, like a macro, is expanded at compilation time.
>
> Same results with this patch.  Can I provide more information or help
> in some other way?

Definitely.  I'll admit that right now, I'm skeptical that unpatching
Lars code change actually fixes this problem.

So, let's go back to the beginning.  The problem as I understand is
that your nnimap, nnvirtual, perhaps other, groups are not fetching
new articles.  As an example, the command 'ESC < ESC g' was provided.

ESC < is move point OK
ESC g gnus-topic-get-new-news-this-topic

gnus-topic-get-new-news-this-topic is a fairly simple function that
selects a set of groups then calls gnus-group-get-new-news-this-group.
Hmmm.  That's identical to turning off the topic mode, marking several
groups with '#', then pressing 'ESC g'.  Does this work for you or is
it also broken?  (This will determine whether the problem is in selecting
or processing the groups).

Assuming that it is still broken...

gnus-group-get-new-news-this-group loops over each group
calling... gnus-activate-group then, if it returned non-nil,
gnus-get-unread-articles-in-group appears to be the workhorse.

This is interesting... gnus-get-unread-articles-in-group does NOTHING
if (gnus-active group) returns nil.

So, here's the next test.  In your group buffer, type

M-: (gnus-activate-group "GROUP")<RET> {where GROUP is the group name
                        as shown in the group buffer.  Obviously pick
                        a group that is not updating.}

What does this function return in the minibuffer?  If it is nil, your
group isn't activating.

If it returned a cons, something like (2 . 1000), activation was
successful.

If the group activated, try this:

M-: (gnus-active "GROUP")<RET> {where GROUP is the same group as before}

Did you get the same cons or nil?

OK, last chance with the easy stuff.  Set both gnus-use-cache and
gnus-agent to nil.  Fetch new news again.  Does this fix the problem?

If you haven't seen any nil values by now, you're probably best off
debugging the gnus-get-unread-articles-in-group function.  Don't
bother stepping into the backend functions until certain that it will
be necessary.  That is, step over the gnus-request-update-info and
gnus-activate-group calls, until you have verified that
gnus-get-unread-articles-in-group does the right thing with the given
active range and list of read articles.

Kevin






  parent reply	other threads:[~2004-03-11  0:10 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-18  1:17 [Bug, Debian(?)] "g" goes not refresh nnimap groups! Marcus Frings
2004-01-18  5:52 ` Simon Josefsson
2004-01-18 22:45   ` Marcus Frings
2004-01-19  6:12     ` Simon Josefsson
2004-01-19 10:30       ` Marcus Frings
2004-02-08 17:21         ` Raymond Scholz
2004-02-08 20:41           ` Marcus Frings
2004-03-04 19:34     ` Marcus Frings
2004-03-04 22:49       ` Simon Josefsson
2004-03-04 23:38         ` Marcus Frings
2004-03-05 20:29           ` Mark Plaksin
2004-03-09  7:02             ` Kevin Greiner
2004-03-09 19:00               ` Marcus Frings
2004-03-09 19:30                 ` Mark Plaksin
2004-03-10  2:25                   ` PATCH (for testing only): " Kevin Greiner
2004-03-10 16:45                     ` PATCH (for testing only): [Bug, Debian(?)] "g" goes not refresh Mark Plaksin
2004-03-10 18:58                       ` PATCH II (for testing only): [Bug, Debian(?)] "g" goes not Kevin Greiner
2004-03-10 19:38                         ` Mark Plaksin
2004-03-10 22:36                         ` Marcus Frings
2004-03-11  0:10                         ` Kevin Greiner [this message]
2004-03-11 22:35                         ` Marcus Frings
2004-03-12  0:48                           ` Kevin Greiner
2004-03-13 22:13                           ` Marcus Frings
2004-03-12  1:04                         ` Mark Plaksin
2004-03-12  3:42                         ` Mark Plaksin
2004-03-12  6:40                         ` Kevin Greiner
2004-03-12 12:37                         ` Marcus Frings
2004-03-13 15:23                         ` Mark Plaksin
2004-03-13 20:22                         ` Marcus Frings
2004-03-13 23:10                         ` Marcus Frings
     [not found]                         ` <m38yi87ar9.fsf@ <m3brn0db3t.fsf@water.tss.usg.edu>
2004-03-14  7:17                           ` Kevin Greiner
2004-03-14 13:16                           ` Marcus Frings
     [not found]                           ` <v <vita-brevis-breviter-in-brevi-finietur-mors-venit-velociter-quae-neminem-veretur-87d67fpo0n.fsf@gothgoose.net>
2004-03-14 13:27                             ` Mark Plaksin
2004-03-16  3:38                               ` Kevin Greiner
2004-03-21 17:44                               ` Marcus Frings
     [not found]                               ` <vita-brevis-breviter-in-brevi-finietur-mors-venit-velociter-quae-neminem-ve <ud67dea0u.fsf@xpediantsolutions.com>
2004-03-23  1:30                                 ` Kevin Greiner
2004-03-23 20:37                                 ` Marcus Frings
2004-04-17 16:09                                 ` Marcus Frings
     [not found]                                 ` <vita-brevis-breviter-in-brevi-finietur-mors-venit-velociter-quae-neminem-veretur-87brmqdri1.fsf@gothgoose.net <u3c80e4ex.fsf@xpediantsolutions.com>
2004-04-18 20:29                                   ` Kevin Greiner
2004-04-27 12:25                                   ` Marcus Frings
2004-03-14 14:12                             ` Marcus Frings
2004-03-10 22:08                     ` PATCH (for testing only): [Bug, Debian(?)] "g" goes not refresh Marcus Frings

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=un06oqm4v.fsf@xpediantsolutions.com \
    --to=kgreiner@xpediantsolutions.com \
    /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).