Gnus development mailing list
 help / color / mirror / Atom feed
From: David Z Maze <dmaze@MIT.EDU>
Subject: Re: nnrss not working for me
Date: Tue, 17 Feb 2004 22:40:36 -0500	[thread overview]
Message-ID: <y68y8r1f423.fsf@no-knife.mit.edu> (raw)
In-Reply-To: <871xp0xoru.fsf@everett.mit.edu> (David Z. Maze's message of "Thu, 12 Feb 2004 11:09:57 -0500")

[-- Attachment #1: Type: text/plain, Size: 1146 bytes --]

David Z Maze <dmaze@mit.edu> writes:

> nnrss is this neat theoretical concept for me, but I've never quite
> gotten it working (including through the 5.10.x series, so I'll ask
> the newsgroup).  I'm running current CVS Gnus.  If I try to subscribe
> to an RSS group, this happens:
>
>   G R http://donut.mit.edu/blog/index.rss
>   (*Gnus churns for a bit, prodding donut*)
>   Title: blog.donut
>   Description: blog.donut
>   No such newsgroup: nnrss:blog.donut

So after much hacking, I finally found out that the root of my
problems is that the RSS feed declares

<rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:admin="http://webns.net/mvcb/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
> 

but nnrss-get-namespace-prefix was returning a prefix of ":" when
looking for "http://purl.org/rss/1.0/" as an XML namespace; it should
have returned "".  It turns out that you can have two distinct empty
elisp strings that are equal but not eq, so:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 348 bytes --]

--- nnrss.el    14 Feb 2004 00:29:45 -0000      7.5
+++ nnrss.el    18 Feb 2004 03:39:12 -0000
@@ -730,7 +730,7 @@
                    "")
                   ((eq (length nslist) 2) ; extract prefix
                    (cadr nslist)))))
-    (if (and ns (not (eq ns "")))
+    (if (and ns (not (equal ns "")))
        (concat ns ":")
       ns)))


[-- Attachment #3: Type: text/plain, Size: 176 bytes --]


Thanks,

-- 
David Maze             dmaze@mit.edu          http://www.mit.edu/~dmaze/
"Theoretical politics is interesting.  Politicking should be illegal."
	-- Abra Mitchell

       reply	other threads:[~2004-02-18  3:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <871xp0xoru.fsf@everett.mit.edu>
2004-02-18  3:40 ` David Z Maze [this message]
2004-05-16 18:16   ` Lars Magne Ingebrigtsen

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=y68y8r1f423.fsf@no-knife.mit.edu \
    --to=dmaze@mit.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).