From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex Kost Newsgroups: gmane.emacs.help Subject: Re: error when trying to add a new rss feed Date: Sat, 14 Nov 2015 21:49:20 +0300 Message-ID: <87oaewl8lr.fsf@gmail.com> References: <87mvujxbtc.fsf@skimble.plus.com> <87wptl6lpr.fsf@gmail.com> <87vb94o9uo.fsf@skimble.plus.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1447587794 14041 80.91.229.3 (15 Nov 2015 11:43:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Nov 2015 11:43:14 +0000 (UTC) Cc: help-emacs To: Sharon Kimble Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 15 12:43:00 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 1Zxvhv-0003go-1h for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Nov 2015 12:42:55 +0100 Original-Received: from localhost ([::1]:42109 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zxvhu-00087y-8U for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Nov 2015 06:42:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zxft8-00065Y-1j for help-gnu-emacs@gnu.org; Sat, 14 Nov 2015 13:49:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zxft4-0000j4-PF for help-gnu-emacs@gnu.org; Sat, 14 Nov 2015 13:49:25 -0500 Original-Received: from mail-lb0-x22d.google.com ([2a00:1450:4010:c04::22d]:32969) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zxft4-0000it-HG for help-gnu-emacs@gnu.org; Sat, 14 Nov 2015 13:49:22 -0500 Original-Received: by lbbkw15 with SMTP id kw15so69851744lbb.0 for ; Sat, 14 Nov 2015 10:49:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=i2E9Joxy4JZVgL+/x0lx/W1B+2thaJH2Oa5J1s4CFqs=; b=H+Qo465eL5la3DigCteSVJlm8Ve7oaMTNxIPuWKK1zgd+R1+vICKzrMM2jhAdrkftK OlksLajHnQbxuyT8aEjtvzaoOsv7nui/bhxuBBkeeSv/zYoPlRK/zr3WRtKseqacDhSD JbcB+IR+ees0Fq/0IZeRecjbY+S9X/myP1GRWnNlvYL163UVKKTygpLWkY16ZSz2hTHl hgnd2zmRtKpX36T882uIu6Ey2CjbTk3YNB+kThkz02rbIr+tRwsQEI13TVdcE1twV6OC /DBFwB3qFfB+BP713+x1NDS9J551Pw7Dguh5nR5FMBuZ+QGSI4lCpotZCT/ZIRgThLBm x4tQ== X-Received: by 10.112.135.233 with SMTP id pv9mr13697688lbb.42.1447526961615; Sat, 14 Nov 2015 10:49:21 -0800 (PST) Original-Received: from leviafan ([217.107.192.146]) by smtp.gmail.com with ESMTPSA id q197sm4177613lfd.36.2015.11.14.10.49.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 14 Nov 2015 10:49:21 -0800 (PST) In-Reply-To: <87vb94o9uo.fsf@skimble.plus.com> (Sharon Kimble's message of "Sat, 14 Nov 2015 15:54:07 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22d 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:108078 Archived-At: 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: --8<---------------cut here---------------start------------->8--- $ 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. > 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). -- Alex