Gnus development mailing list
 help / color / mirror / Atom feed
From: Marcus Frings <iam-est-hora-surgere@despammed.com>
Subject: Re: PATCH II (for testing only): [Bug, Debian(?)] "g" goes not
Date: Sun, 21 Mar 2004 18:44:38 +0100	[thread overview]
Message-ID: <vita-brevis-breviter-in-brevi-finietur-mors-venit-velociter-quae-neminem-veretur-87brmqdri1.fsf@gothgoose.net> (raw)
In-Reply-To: <m31xnvblt7.fsf@water.tss.usg.edu>

* Kevin Greiner <kgreiner@xpediantsolutions.com> wrote:
> Marcus Frings <iam-est-hora-surgere@despammed.com> writes:
>> * Mark Plaksin <happy@mcplaksin.org> wrote:

>>>>> Please verify that this buffer contains, at least, one occurrance of
>>>>> "DISCREPENCY LOCATED".  If it does, please send the contents of this
>>>>> buffer to me.

>>> I didn't get any occurrences :(  In case it's useful, the (160k) output
>>> is here: http://mcplaksin.org/happy/kjg.txt

>> Well, I had some of these. Don't know what this means. :-)

> To answer your question, it means that the old, and new, algorithms
> disagreed as to the type (primary, secondary, foreign) of the group's
> server.  This supports your position that the new algorithm changed
> the behavior of gnus.

> So the question is, did the new algorithm introduce a new bug or fix
> an old bug (one that you were incidentally depending on)?

> Here's the debug for one of the groups (I changed the IP # just to
> confuse any casual readers).

> Beginning Test on Group nnimap+192.168.0.1:INBOX.Mark
> method = nnimap:192.168.0.1

> cmethod = (nnimap:192.168.0.1 nnimap 192.168.0.1 
>   (nnimap-address 192.168.0.1)
>   (nnimap-authinfo-file ~/.authinfo)
>   (nnimap-stream ssl)
>   (nnimap-list-pattern INBOX.*))

> method = (nnimap 192.168.0.1 
>   (nnimap-address 192.168.0.1)
>   (nnimap-authinfo-file ~/.authinfo)
>   (nnimap-stream ssl)
>   (nnimap-list-pattern INBOX.*))
> method[(nnimap 192.168.0.1 
>           (nnimap-address 192.168.0.1)
>           (nnimap-authinfo-file ~/.authinfo)
>           (nnimap-stream ssl)
>           (nnimap-list-pattern INBOX.*))]
>  entry in type-cache = 
>   ((nnimap 192.168.0.1 
>       (nnimap-address 192.168.0.1)
>       (nnimap-authinfo-file ~/.authinfo)
>       (nnimap-stream ssl)
>       (nnimap-list-pattern INBOX.*)) .
>  secondary)
> method-type = secondary
> Need to calc method type is nil
> new-results = nil
> Beginning old solution
> method = nnimap:192.168.0.1
> method = (nnimap 192.168.0.1)
> not equal = t
> not secondary method = t
> old-results = t
> DISCREPENCY LOCATED: old-results = t new-results = nil

> Now, to explain what this means.  By the debug, the value of
> old-results was t so this expression evaluates to true.

> (and (setq method (gnus-info-method info))
>      (not (inline
> 	    (gnus-server-equal
> 	     gnus-select-method
> 	     (setq method (gnus-server-get-method nil method)))))
>      (not (gnus-secondary-method-p method)))

> The pseudo-code for this expression is
>  (AND ... Have a non-nil method (The nil method is equivalent to the primary) ...
>       (NOT ... Equal to the primary (gnus-select-method) method ...)
>       (NOT ... Any of the known secondary methods ...))

> or

> The old algorithm concluded that this group was foreign.

> Marcus, in your very first message (dated 18 Jan), you listed your
> config as:

> (setq gnus-secondary-select-methods
>       '((nnimap "192.168.0.1"
> 		(nnimap-address "192.168.0.1")
> 		(nnimap-authinfo-file "~/.authinfo")
> 		(nnimap-stream ssl)
> 		(nnimap-list-pattern "INBOX.*")
> 		)))

> This means that the (nnimap "192.168.0.1" ...) method shown in the
> debug is a SECONDARY method.  This clearly shows that the old code was
> buggy and that Lars new code fixed the bug.

Ah, okay.

> As for your problem, gnus is certainly following a different branch in
> the code.  You could be triggering either a latent bug in that code
> or, the more likely, it's something in your configuration.

I also thought in the first place that there could be a bug in my
configuration since I have a pretty large setup which is divided into
many separate files but now I am sure for 100 % that my configuration is
fine because the bug also shows up if I load my gnus_server.el *only*
(and no other Gnus configuration files!). My gnus_server.el:

,----[ gnus_server.el ]
| (setq gnus-select-method '(nntp "iridium.home.local"))
| 
| (setq gnus-read-active-file 'some)
| 
| (setq gnus-check-new-newsgroups 'ask-server)
| 
| (setq gnus-save-killed-list nil)
| 
| (setq gnus-check-bogus-newsgroups 'ask-server)
| 
| (setq gnus-secondary-select-methods
|       '((nnimap "192.168.0.1"
| 		(nnimap-address "192.168.0.1")
| 		(nnimap-authinfo-file "~/.authinfo")
| 		(nnimap-stream ssl)
| 		(nnimap-list-pattern "INBOX.*")
| 		)))
| 
| (add-to-list 'gnus-secondary-select-methods
| 	     '(nntp "gmane" (nntp-address "news.gmane.org")))
| 
| (setq gnus-refer-article-method
|       '(current
| 	(nntp "iridium.home.local")           ; lokaler Newsserver
| 	(nntp "news.t-online.de")             ; news.t-online.de
|         (nnweb "google" (nnweb-type google))  ; groups.google.com
| 	(nntp "news.gmane.org")))             ; news.gmane.org
| 
| (setq gnus-refer-thread-limit t)
`----

In my opinion there's nothing in my setup that could cause the bug.

> So let's take the easy path.  Open the gnus-start.el file and search
> for ";; These groups are native or secondary.".  Insert this
> expression after this line.

> (when (equal (gnus-info-group info) "nnimap+192.168.0.1:INBOX.Mark")
>   (debug))

> Eval the buffer (don't compile it) then fetch the groups.  When the

One question: Should I have patched an unmodified gnus-start.el or the
one which contains the patch with both of the old and new algorithms
from your last mail? By the way, I patched an original gnus-start.el
from a fresh upstream CVS checkout.

> debugger starts, use the 'c' and 'd' commands to step through the
> gnus-get-unread-articles function.  Don't bother going to deep into the
> functions it calls.  What you really want to know is which branch of
> the cond is executed.

> Here's the only issue left concerning Lars' code.  The value of the
> variable 'method' is different.  In the old code, the variable
> identified which method but none of the method parameters.  In the new
> code, method identifies the fully-qualified method.  This should NOT
> cause a problem.  However, your stepping though this code may tell a
> different story.

> Personally, my bet is that gnus is evaluating
> (> (gnus-info-level info) level) as true.

Well, I have done what you asked me to do but unfortunately I failed to
find any valuable information. When I hit "c" it just runs through and
the *Backtrace* buffer will be closed immediately within 1 second. Then
I used "d" to go step by step (Argh, I guess I had to hit "d" more than
1000 times :-) but I was unable to recognize something interesting
concerning (> (gnus-info-level info) level) because I really have no
clue about Lisp debugging. 

> Now then Mark, I suspect that you've been reading along so far.  Your
> test results indicate that you didn't get any of the "DISCREPENCY
> LOCATED" messages. That indicates that your problem is probably due to
> 'method' having a different value.  Hmmm... Didn't I just say that
> that wasn't an issue?  This job just isn't fun anymore.
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  :-)

One thing I haven't understood yet:
Why does it fail on Emacs 21.3.1 but works with a (Windows) CVS Emacs
which I downloaded from <http://www.crasseux.com/>?

Regards,
Marcus
-- 
"The father's eyes said `Beautiful! How beautiful you are!'. The boy's eyes
said `How beautiful! She glitters like a star!'. The child's eyes uttered joy
and stilled my heart with sadness for the way we are. And this is why I hate
you and how I understand that no-one ever knows or loves another."




  parent reply	other threads:[~2004-03-21 17:44 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
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 [this message]
     [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=vita-brevis-breviter-in-brevi-finietur-mors-venit-velociter-quae-neminem-veretur-87brmqdri1.fsf@gothgoose.net \
    --to=iam-est-hora-surgere@despammed.com \
    --cc=protagonist@gmx.net \
    /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).