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:48:45 +0300 Message-ID: <87pozcl8mq.fsf@gmail.com> References: <87mvujxbtc.fsf@skimble.plus.com> <87vb96dbvg.fsf@debian.uxu> <87wptms93q.fsf@skimble.plus.com> <87vb954mvt.fsf@debian.uxu> <87y4e16lqq.fsf@gmail.com> <87oaewppjv.fsf@skimble.plus.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1447587696 12512 80.91.229.3 (15 Nov 2015 11:41:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Nov 2015 11:41:36 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Sharon Kimble Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 15 12:41:25 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 1ZxvgM-0001pC-4H for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Nov 2015 12:41:18 +0100 Original-Received: from localhost ([::1]:42099 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxvgL-0007ER-B7 for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Nov 2015 06:41:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zxfsa-0005uP-4Y for help-gnu-emacs@gnu.org; Sat, 14 Nov 2015 13:48:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZxfsW-0000bQ-R0 for help-gnu-emacs@gnu.org; Sat, 14 Nov 2015 13:48:52 -0500 Original-Received: from mail-lb0-x233.google.com ([2a00:1450:4010:c04::233]:35453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxfsW-0000ap-Jh for help-gnu-emacs@gnu.org; Sat, 14 Nov 2015 13:48:48 -0500 Original-Received: by lbbsy6 with SMTP id sy6so41059711lbb.2 for ; Sat, 14 Nov 2015 10:48:47 -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=RHSQDrbfkSoAbjZQHyhXLySEf9ZLEzE7C4LT5p4q/gw=; b=RxNgsVS8b/YSNLD4cOxGt7PffOAOVMewTUQLMkv5lA1+pjMdy9OJ+/snnfbJGWMGjE F3X4tvPAV5nd32DqiMuIxpabx2Pz08Pcd0DO+7kYNflbV6gmAfMxomICGN4rZdRuTU53 3GFcCcDdm6cL02dvp3oml10rvbZCHF5bltdlrVT2fQ2nlawJQ9VvizQjP//lEn3wbG8p yHTE7OxbZOxwRa3GoEpRPHi3xtaBkk0uJd8GQI6UfoaLsbk5AHx1wT7MwLFOkPFOX6K3 FGaa+Jb745qgkGMxFfooLMpbKXRB+Aoi7fCeRagV5T4kAdci08/TFp2G/8pJc5FMo6T1 ZRLQ== X-Received: by 10.112.130.138 with SMTP id oe10mr13178213lbb.54.1447526927772; Sat, 14 Nov 2015 10:48:47 -0800 (PST) Original-Received: from leviafan ([217.107.192.146]) by smtp.gmail.com with ESMTPSA id h37sm4180555lfi.8.2015.11.14.10.48.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 14 Nov 2015 10:48:47 -0800 (PST) In-Reply-To: <87oaewppjv.fsf@skimble.plus.com> (Sharon Kimble's message of "Sat, 14 Nov 2015 15:29:40 +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::233 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:108077 Archived-At: Sharon Kimble (2015-11-14 18:29 +0300) wrote: > Alex Kost writes: > >> Emanuel Berg (2015-11-14 00:20 +0300) wrote: >> >>> Sharon Kimble 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: . >> >> 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