From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61606 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: PATCH: Make nnrss fail gracefully when it can't fetch a feed Date: Thu, 22 Dec 2005 23:49:47 +0900 Message-ID: References: <87y82e1gg2.fsf@stone.tss.usg.edu> <87r785nsu6.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 1135263057 32644 80.91.229.2 (22 Dec 2005 14:50:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Dec 2005 14:50:57 +0000 (UTC) Original-X-From: ding-owner+m10138@lists.math.uh.edu Thu Dec 22 15:50:55 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 1EpRmN-0002p4-Ko for ding-account@gmane.org; Thu, 22 Dec 2005 15:50:51 +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 1EpRmJ-00072m-00; Thu, 22 Dec 2005 08:50:47 -0600 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EpRld-00072h-00 for ding@lists.math.uh.edu; Thu, 22 Dec 2005 08:50:05 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1EpRlV-0005X0-G3 for ding@lists.math.uh.edu; Thu, 22 Dec 2005 08:50:05 -0600 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EpRlU-00028W-00 for ; Thu, 22 Dec 2005 15:49:56 +0100 Original-Received: from softbank218118002045.bbtec.net ([218.118.2.45]:64752 helo=) by washington.hostforweb.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.52) id 1EpRnF-0000mq-JV for ding@gnus.org; Thu, 22 Dec 2005 08:51:48 -0600 Original-To: ding@gnus.org X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:NFOi+BHVHIKP9kKE9M5LeSP0QDQ= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61606 Archived-At: >>>>> In <87r785nsu6.fsf@stone.tss.usg.edu> >>>>> Mark Plaksin wrote: > 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. I meant we can use `message' instead of `nnheader-message' there as the following: (condition-case nil (mm-url-insert url) (error (message "nnrss: Failed to fetch %s" url))) I never said that we should use `error' instead of `nnheader-message'. > 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? Or `message' is, I think. >> 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? AFAIK, a paper for Emacs applies to all that programs the Emacs includes. > 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.