Gnus development mailing list
 help / color / mirror / Atom feed
* Re: nnrss not working for me
       [not found] <871xp0xoru.fsf@everett.mit.edu>
@ 2004-02-18  3:40 ` David Z Maze
  2004-05-16 18:16   ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: David Z Maze @ 2004-02-18  3:40 UTC (permalink / raw)


[-- 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

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

* Re: nnrss not working for me
  2004-02-18  3:40 ` nnrss not working for me David Z Maze
@ 2004-05-16 18:16   ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2004-05-16 18:16 UTC (permalink / raw)


David Z Maze <dmaze@MIT.EDU> writes:

> It turns out that you can have two distinct empty elisp strings that
> are equal but not eq, so:

Yup.  `eq' tests for object identity, and "" and "" are two distinct
objects.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen





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

end of thread, other threads:[~2004-05-16 18:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <871xp0xoru.fsf@everett.mit.edu>
2004-02-18  3:40 ` nnrss not working for me David Z Maze
2004-05-16 18:16   ` Lars Magne Ingebrigtsen

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