help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error when trying to add a new rss feed


From: Alex Kost
Subject: Re: error when trying to add a new rss feed
Date: Sat, 14 Nov 2015 21:48:45 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Sharon Kimble (2015-11-14 18:29 +0300) wrote:

> Alex Kost <alezost@gmail.com> writes:
>
>> Emanuel Berg (2015-11-14 00:20 +0300) wrote:
>>
>>> Sharon Kimble <boudiccas@skimble.plus.com> writes:
>>>
>>>> (require 'mm-url)
>>>> (defadvice mm-url-insert (after DE-convert-atom-to-rss () )
>>>>   "Converts atom to RSS by calling xsltproc."
>>>>   (when (re-search-forward "xmlns=3D\"http://www.w3.org/.*/Atom\"";
>>>>                            nil t)
>>>>     (goto-char (point-min))
>>>>     (message "Converting Atom to RSS... ")
>>>>     (call-process-region (point-min) (point-max)
>>>>                          "xsltproc"
>>>>                          t t nil
>>>>                          (expand-file-name "~/atom2rss.xsl") "-")
>>>>     (goto-char (point-min))
>>>>     (message "Converting Atom to RSS... done")))
>>>>
>>>> (ad-activate 'mm-url-insert)
>>>
>>> So this is how you do it. It sure looks complicated
>>> enough but I've seen that piece of code elsewhere so
>>> I suppose it is good.
>>
>> It is from the wiki: <http://www.emacswiki.org/emacs/GnusRss#toc6>.
>>
>> Sharon, do you really have "~/atom2rss.xsl" file?
>
> Yes -
>
>
> locate atom2rss.xsl
> /home/boudiccas/atom2rss.xsl
> /home/boudiccas/Downloads/atom2rss.xsl
>
> But maybe I can incorporate its code within my "init.org" to make it
> easier to be used? I shall have a hack and see.

I don't see how you can incorporate xsl-file in your init.org, and there
is no need in it.

-- 
Alex



reply via email to

[Prev in Thread] Current Thread [Next in Thread]