Gnus development mailing list
 help / color / mirror / Atom feed
* [PATCH]: Do not fetch nnrss url when unplugged
@ 2004-03-05  7:58 Xavier Maillard
  2004-03-08 15:31 ` Kevin Greiner
  0 siblings, 1 reply; 5+ messages in thread
From: Xavier Maillard @ 2004-03-05  7:58 UTC (permalink / raw)


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





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-03-10 10:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-05  7:58 [PATCH]: Do not fetch nnrss url when unplugged Xavier Maillard
2004-03-08 15:31 ` Kevin Greiner
2004-03-09 15:41   ` Xavier Maillard
2004-03-10  2:50     ` Kevin Greiner
2004-03-10 10:06       ` Xavier Maillard

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).