From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sharon Kimble Newsgroups: gmane.emacs.help Subject: Re: error when trying to add a new rss feed Date: Sat, 14 Nov 2015 19:57:13 +0000 Message-ID: <87egfsuzfq.fsf@skimble.plus.com> References: <87mvujxbtc.fsf@skimble.plus.com> <87wptl6lpr.fsf@gmail.com> <87vb94o9uo.fsf@skimble.plus.com> <87oaewl8lr.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1447649465 4490 80.91.229.3 (16 Nov 2015 04:51:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Nov 2015 04:51:05 +0000 (UTC) To: Alex Kost , help-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 16 05:50:50 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZyBkg-0001sL-6m for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Nov 2015 05:50:50 +0100 Original-Received: from localhost ([::1]:45530 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyBkf-00069a-By for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Nov 2015 23:50:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zxgwq-0003yi-L8 for help-gnu-emacs@gnu.org; Sat, 14 Nov 2015 14:57:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zxgwm-0003Yp-Jr for help-gnu-emacs@gnu.org; Sat, 14 Nov 2015 14:57:20 -0500 Original-Received: from avasout03.plus.net ([84.93.230.244]:43515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zxgwm-0003XE-9y for help-gnu-emacs@gnu.org; Sat, 14 Nov 2015 14:57:16 -0500 Original-Received: from london.london ([212.56.101.125]) by avasout03 with smtp id hXxD1r0032iKkuk01XxEM7; Sat, 14 Nov 2015 19:57:15 +0000 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=SKu/L7bH c=1 sm=1 tr=0 a=Z6vFUnHZFshV1nOgW1CWSg==:117 a=Z6vFUnHZFshV1nOgW1CWSg==:17 a=0Bzu9jTXAAAA:8 a=EBOSESyhAAAA:8 a=pGLkceISAAAA:8 a=ALsnKoo1AAAA:8 a=XNMjhftiAAAA:8 a=gmKLEPYfAAAA:8 a=3QFAPI2MAAAA:8 a=NEAV23lmAAAA:8 a=Jw0ohAZaAAAA:8 a=LlzXLoV6AAAA:8 a=iI7HsYTVAAAA:8 a=ydMb7Y_wD_ypCFXyfsAA:9 a=Xf_2p8n9H1zs462W:21 a=l-0KMyYzX5HwRA0S:21 a=-FEs8UIgK8oA:10 a=NWVoK91CQyQA:10 a=F6tK5umo_nh6mqDvItwA:9 X-AUTH: skimble@:2500 In-Reply-To: <87oaewl8lr.fsf@gmail.com> (Alex Kost's message of "Sat, 14 Nov 2015 21:49:20 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 84.93.230.244 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108079 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Alex Kost writes: > Sharon Kimble (2015-11-14 18:54 +0300) wrote: > >> Alex Kost writes: >> >>> Sharon Kimble (2015-11-12 22:22 +0300) wrote: >>> >>>> I'm trying to install a new rss feed in gnus, but am consistently >>>> getting this error message - >>>> >>>> >>>> (error "www.syndic8.com/80 Name or service not known") in open-network= -stream >>>> >>>> How can I get rid of this so that I can add a new feed please? >>> >>> Hello, I remember I also had this error. "www.syndic8.com" thing came >>> from emacs itself. It is a fallback or something like it (look at >>> "M-x find-function nnrss-find-rss-via-syndic8"). >> >> >> nnrss-find-rss-via-syndic8 is a compiled Lisp function in `nnrss.el'. >> >> (nnrss-find-rss-via-syndic8 URL) >> >> Query syndic8 for the rss feeds it has for URL. >> >> In which case, maybe it would work better if I just commented that line >> out? We shall see. > > I'm sure it wouldn't help. > > And now I know what the real problem is. I have downloaded an atom-file > you mentioned > > and it is a *malformed* xml file. I manually called 'xsltproc' with > 'atom2rss.xsl' on this xml-file and got the following output: > > $ xsltproc /path/to/atom2rss.xsl /home/alexx/downloads/lazyblorg-all.atom= _1.0.links-and-content.xml > f1 > /home/alexx/downloads/lazyblorg-all.atom_1.0.links-and-content.xml:1032: = parser error : EntityRef: expecting ';' > d. = ^ > /home/alexx/downloads/lazyblorg-all.atom_1.0.links-and-content.xml:1032: = parser error : EntityRef: expecting ';' > en = ^ > /home/alexx/downloads/lazyblorg-all.atom_1.0.links-and-content.xml:2508: = parser error : EntityRef: expecting ';' > iltered" source of information to = ^ > unable to parse /home/alexx/downloads/lazyblorg-all.atom_1.0.links-and-co= ntent.xml > > So as you can see, there are 3 places in this file where instead of a > proper "&" sequence, a simple "&" is used (which is incorrect). If > these errors will be fixed, I almost sure your original code will > work. Since then I've looked at "nnrss.el" and saw that it wouldn't call syndic8 if xml-rpc could not be found. As I used to use xml-rpc when I used org2blog when I had a wordpress site and I no longer needed it I removed it. Then weblogger and metaweblogger created that they couldn't find xml-rpc either, and as nothing called them, they were removed too. Nothing else has bleated that its unsafe, so it seems to be quiet and okay, so far at least! Touch wood! I haven't really tried to download any new rss feeds yet, just letting the dust settle ATM. > >>> I don't recall in details, but I think I faced this error when I wanted >>> to use Atom feeds in gnus. So I used the same code from the wiki to >>> convert Atom to RSS as you do, and it worked for me. Make sure you have >>> "atom2rss.xsl" as described in the wiki. Good luck! >>> >>> >>> P.S. It is probably of no interest for you, but a code I use for >>> converting Atom to RSS is placed here: >>> >>> https://github.com/alezost/emacs-utils/blob/master/utl-gnus.el#L199-L238 >>> >>> And in my emacs config I have: >>> >>> (setq utl-atom2rss-file "/path/to/atom2rss.xsl") >>> (advice-add 'mm-url-insert :after #'utl-convert-atom-to-rss) >> >> Thanks, I've incorporated both snippets into my "init.org" and will >> shortly try it out. > > No need to do it, your initial code should work (for a proper atom file). Thanks, I'll bear that in mind when I find one :) Sharon. =2D-=20 A taste of linux =3D http://www.sharons.org.uk TGmeds =3D http://www.tgmeds.org.uk Debian 8.0, fluxbox 1.3.7, emacs 24.5.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJWR5IZAAoJEDaBgBkK+INbLIoP/Rk1cDI5zt9ewLr3Dlp2Tx8e jDnHiFmDbuLeZElXgP7Y1HRw7wmmmubrz1O+PecxXwEQePjHYnR2TgO5OiznEEoT RPmsheYu+jA241oIuqfzmGGYULRvr4YrzY6FoJGXqVJCuSvUX4aLzbFugL+cdU3V ZWmmE5xd5I4mRfJRfuyWGwgM4b5aEaJ57kdDa8m6gE9A7/XRvyzT73HlU5qM7q8B V6WwUL1UZtKUlWBzT+hxazHpkM7OCv/hZYYsGsHvuOOhlUC5z3ZPnqhaZ6wERBBH zyy46SdxtYiXP9zHVGpqpPMC9m0yBrXfONeT0RLbJaaMVQv30ZcfVa1rkRBkVU1o OFOu/m6nPc0GIrQfwDeFTOyl2xSSPh1A7AR9yNc+X5GPzvLBP5rZET0YafMT1qJW rw0STle3isqSoUFEXcLCPO4amb2nIGE9s58Ve1/p4YIRhD7LGOXFw4hyWQCXks5l sNDFhX00m54qKPiXWbUrlKip3CY845zWeKWiBzh6RPD4a4U5ZRFxC0hevnWhsFqB MfgqDAySKehQKwXG3IQUdVI/c3K6tfU6xCEFgtA8H3j3Peg7lYzbhDv5vGYZUaPc EyK3htKnoLjnKdPUFKL+iYBt+0Nvj+WBf/cQyayuuY2z5gFnhdNCn2JjRIi8NxsE N/h9KQTZXTHG1G0t1XUF =6NaD -----END PGP SIGNATURE----- --=-=-=--