From: Mark Plaksin <happy@usg.edu>
Subject: Re: PATCH: Make nnrss fail gracefully when it can't fetch a feed
Date: Thu, 22 Dec 2005 08:50:57 -0500 [thread overview]
Message-ID: <87r785nsu6.fsf@stone.tss.usg.edu> (raw)
In-Reply-To: <b4mfyoln6na.fsf_-_@jpl.org>
Katsumi Yamaoka <yamaoka@jpl.org> writes:
>> - (mm-url-insert url)))
>> + (condition-case nil
>> + (mm-url-insert url)
>> + (error (nnheader-message 3 "nnrss: Failed to fetch %s" url)))))
>
> Isn't it better to use just `message' since it is obviously an
> error? And also (sit-for N) might be required.
Hmm, maybe everybody isn't like me and there should be an option for error
handling :) I want a warning instead of an error because various feeds are
often inaccessible for some reasons beyond my control. As-is, Gnus stops
checking groups as soon as nnrss has an error and I don't know an easy way
to say "don't check group X this time around but check all the rest".
Some folks might want an error so that they it's obvious they are missing a
feed. I'll notice if I haven't read a feed for a long time so a warning
with no delay is best for me.
A warning is also be better than an error (for me) if fetching feeds via
a gnus-demon.
I won't have time to work on this for a week or so.
>> I don't know whether I used the right -message function. What's the
>> difference between nnheader-message and gnus-message?
>
> AFAIK, gnus- modules, mm- modules, nn- modules, and others are
> mutually independent. For example, there might be people who
> use nn- modules for the application other than Gnus. (They
> depend each other in practice, though.)
So nnheader-message is a general message function for all backends?
> BTW, you'd better do the paper work for the copyright assignment
> on Emacs (or Gnus) because the remainder of your `tiny change'
> quota will be used up sooner or later. ;-)
Ha! Are there really separate papers for Gnus and Emacs? Where does one
find the magical papers? They are mentioned but not present here:
http://www.gnu.org/prep/maintain/html_node/Copyright-Papers.html#Copyright-Papers
If it's all the same to the FSF, I'd just as soon do the one that includes
future changes.
next prev parent reply other threads:[~2005-12-22 13:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-21 17:57 Mark Plaksin
2005-12-21 18:28 ` Mark Plaksin
2005-12-22 3:38 ` Katsumi Yamaoka
2005-12-22 13:50 ` Mark Plaksin [this message]
2005-12-22 14:49 ` Katsumi Yamaoka
2005-12-31 15:49 ` Mark Plaksin
2006-01-01 6:46 ` Katsumi Yamaoka
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=87r785nsu6.fsf@stone.tss.usg.edu \
--to=happy@usg.edu \
/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).