unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: error when trying to add a new rss feed
Date: Fri, 13 Nov 2015 22:20:38 +0100	[thread overview]
Message-ID: <87vb954mvt.fsf@debian.uxu> (raw)
In-Reply-To: 87wptms93q.fsf@skimble.plus.com

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. Still, if it is good, it should
be packetized somehow so not everyone would have it
yanked in their init files! But anyway...

1. You already have Gwene so that I'd try first!

2. Otherwise try this - say you want this feed:

       http://www.dn.se/nyheter/m/rss/

   It is to the biggest morning paper i Sweden, the
   one then-prime-minister Göran Person correctly
   described as "a really scary paper"... So here we
   just use it for testing purposes!

   In the Gnus group buffer, hit

       G R http://www.dn.se/nyheter/m/rss/ RET RET RET

   Then you should have it.

-- 
underground experts united
http://user.it.uu.se/~embe8573




  reply	other threads:[~2015-11-13 21:20 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-12 19:22 error when trying to add a new rss feed Sharon Kimble
2015-11-12 20:27 ` tomas
2015-11-12 21:08   ` Sharon Kimble
2015-11-12 21:56     ` tomas
2015-11-12 22:18     ` Jeffrey DeLeo
2015-11-12 23:41 ` Emanuel Berg
2015-11-13  6:32   ` Sharon Kimble
2015-11-13 21:20     ` Emanuel Berg [this message]
2015-11-14  8:14       ` Alex Kost
2015-11-14 15:29         ` Sharon Kimble
2015-11-14 18:48           ` Alex Kost
2015-11-14 16:53         ` Sharon Kimble
2015-11-14  8:15 ` Alex Kost
2015-11-14 15:54   ` Sharon Kimble
2015-11-14 18:49     ` Alex Kost
2015-11-14 19:57       ` Sharon Kimble
2015-11-14 16:56   ` Sharon Kimble
2015-11-15  7:48 ` SOLVED - " Sharon Kimble

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vb954mvt.fsf@debian.uxu \
    --to=embe8573@student.uu.se \
    --cc=help-gnu-emacs@gnu.org \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).