help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gnus mail with zoho.com


From: Eric Abrahamsen
Subject: Re: Gnus mail with zoho.com
Date: Sat, 22 Apr 2017 17:21:54 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Emanuel Berg <address@hidden> writes:

> Eric Abrahamsen wrote:
>
>> I suppose the first thing to do would be to
>> edebug `mail-source-fetch-pop' and run
>> through it -- at least that might give you
>> a more accurate view of what stage the error
>> is coming from...
>
> I did (now) but don't know the debugger at all,
> almost. My code never has any bugs, you see :)

That must be nice :)

> It seems `c' will take you forward to the
> strange question. Can I take the debugger one
> step back from that point and somehow get the
> current state?

You can always read the manual! But very simply, <SPC> will move from
point to point, and show you the value of variables as you pass them. If
you want to evaluate arbitrary forms in the current context of the
function, use "e". If you want to skip ahead and continue evaluation
later in the function, move point and hit "h". I don't think you can go
backwards.

> Anyway, oddly enough, this very problem seems
> to be related to the debugger! With
>
>     (setq debug-on-error nil)
>
> I do get the question, that is
>
>     Mail source (pop :user moasen :password
>     *** pop.zoho.com :port 995)
>     error (USER moasen not valid). Continue?
>     (yes or no)
>
> but with
>
>     (setq debug-on-error t)
>
> I don't get the question, instead this message
> just flickers by:
>
>     Mail source (pop :user moasen :password xyz
>     :server pop.zoho.com :port 995) failed:
>     (error Cannot get new mail)

Sometimes when that happens it indicates that the error is related to
timing. Ie, when debugging the function, evaluation is slowed down
enough that behavior changes. Getting more familiar with edebug will
help clear that up, though.

> Even ignoring the counterintuitiveness of
> that, it still doesn't seem to work, unless
> I repeatedly try until I don't get the message
> and do get the mail, if any.
>
> This is so confusing at this point it might be
> a configuration problem. But even that is
> difficult to asses because the Gnus setup is
> based on configuration. So the normal
> 'emacs -Q' to detect malconfiguration will
> cripple all of Gnus.

That's the fun thing about Gnus!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]