From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/56586 Path: main.gmane.org!not-for-mail From: Xavier Maillard Newsgroups: gmane.emacs.gnus.general Subject: [PATCH]: Do not fetch nnrss url when unplugged Date: Fri, 05 Mar 2004 08:58:06 +0100 Organization: GNU Rox ! Sender: ding-owner@lists.math.uh.edu Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1078514452 25232 80.91.224.253 (5 Mar 2004 19:20:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Mar 2004 19:20:52 +0000 (UTC) Original-X-From: ding-owner+M5126@lists.math.uh.edu Fri Mar 05 20:20:44 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AzKsF-0005XL-00 for ; Fri, 05 Mar 2004 20:20:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1AzKs1-0001KF-00; Fri, 05 Mar 2004 13:20:29 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1AzKru-0001K9-00 for ding@lists.math.uh.edu; Fri, 05 Mar 2004 13:20:22 -0600 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id 1F5C93A003E for ; Fri, 5 Mar 2004 13:20:21 -0600 (CST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AzKrs-00086N-00 for ; Fri, 05 Mar 2004 20:20:20 +0100 Original-Received: from rms.gnu-rox.org ([213.41.134.247]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 Mar 2004 20:20:20 +0100 Original-Received: from zedek by rms.gnu-rox.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 Mar 2004 20:20:20 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org Original-Lines: 34 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: rms.gnu-rox.org Mail-Copies-To: nobody X-Attribution: zeDek X-Url-GnusFr: http://www.gnusfr.org X-Url-EmacsFr: http://www.emacsfr.org X-Home-Page: http://www.gnu-rox.org/~zedek/cgi-bin/wiki.pl X-Gpg-Key-ID: 1E028EA5 X-Gpg-Fingerprint: FDB0 EE1F 33E5 8C22 5E3E 96E7 6900 CA9B 1E02 8EA5 X-Face: "qG{UC8GPzro#PZ!Jgisuj0]=k10 f#d596CJMPGOGwB'j\^JR2g0']N%L:ylC`?.l8u#JuS#CygUA}avHHVJJ!#ub7CxX#u]g}?z,hQ;c q%v]"[$!BfS X-In-No-Sense: Nonsense X-Whatever: no User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:O+f/vxiUeNjGgLNLwGMLHpHy4iI= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:56586 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:56586 Hello, As discussed earlier this week, I had to "modify" nnrss.el to allow offline reading of nnrss feeds. The patch consists on checking 'gnus-plugged` value and if 't', let fetch-nnrss function fetch the url. Here is the patch: --- nnrss.el.orig 2004-03-05 08:52:55.000000000 +0100 +++ nnrss.el 2004-03-03 08:24:56.000000000 +0100 @@ -259,7 +259,8 @@ (if local (let ((coding-system-for-read 'binary)) (insert-file-contents url)) - (mm-url-insert url)) + (if gnus-plugged + (mm-url-insert url))) ;; Because xml-parse-region can't deal with anything that isn't ;; xml and w3-parse-buffer can't deal with some xml, we have to I don't think you need my FSF papers for such a so tiny patch ;-) (though I should send 'em). Regards, zeDek -- GNUSFR.ORG http://gnusfr.org/ EMACSFR.ORG http://emacsfr.org/ Xavier Maillard Tel: +33 6 68 04 64 37