From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61605 Path: news.gmane.org!not-for-mail From: Mark Plaksin Newsgroups: gmane.emacs.gnus.general Subject: Re: PATCH: Make nnrss fail gracefully when it can't fetch a feed Date: Thu, 22 Dec 2005 08:50:57 -0500 Message-ID: <87r785nsu6.fsf@stone.tss.usg.edu> References: <87y82e1gg2.fsf@stone.tss.usg.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1135259766 21656 80.91.229.2 (22 Dec 2005 13:56:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Dec 2005 13:56:06 +0000 (UTC) Original-X-From: ding-owner+m10136@lists.math.uh.edu Thu Dec 22 14:56:04 2005 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EpQvG-0007sG-Jh for ding-account@gmane.org; Thu, 22 Dec 2005 14:55:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1EpQv8-0006qT-00; Thu, 22 Dec 2005 07:55:50 -0600 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EpQqu-0006qN-00 for ding@lists.math.uh.edu; Thu, 22 Dec 2005 07:51:28 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1EpQqq-0002q1-4b for ding@lists.math.uh.edu; Thu, 22 Dec 2005 07:51:28 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EpQqo-0001Ds-00 for ; Thu, 22 Dec 2005 14:51:22 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EpQqd-00069h-EY for ding@gnus.org; Thu, 22 Dec 2005 14:51:11 +0100 Original-Received: from stone.tss.usg.edu ([168.24.82.77]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Dec 2005 14:51:11 +0100 Original-Received: from happy by stone.tss.usg.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Dec 2005 14:51:11 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 45 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: stone.tss.usg.edu User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0 (gnu/linux) Cancel-Lock: sha1:KEZPF1r2P1LiZRS7Qospvg9J67I= X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61605 Archived-At: Katsumi Yamaoka 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.