From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Publishing feed Date: Fri, 28 May 2010 13:30:36 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0543825398==" Return-path: Received: from [140.186.70.92] (port=43922 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OI4Ka-00032a-HR for emacs-orgmode@gnu.org; Fri, 28 May 2010 14:32:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OI4KN-0007eF-Ry for emacs-orgmode@gnu.org; Fri, 28 May 2010 14:30:41 -0400 Received: from mail-gw0-f41.google.com ([74.125.83.41]:36700) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OI4KN-0007dt-Mp for emacs-orgmode@gnu.org; Fri, 28 May 2010 14:30:39 -0400 Received: by gwb19 with SMTP id 19so1531639gwb.0 for ; Fri, 28 May 2010 11:30:38 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --===============0543825398== Content-Type: multipart/alternative; boundary=000e0cd4b630051c900487abb444 --000e0cd4b630051c900487abb444 Content-Type: text/plain; charset=ISO-8859-1 I've been looking at the mailing list archive here: http://www.mail-archive.com/emacs-orgmode@gnu.org/msg22964.html I have some questions/issues: 1) is there a 'current' version of org-atom.el? The attachment on the email listing is from March and there doesn't appear to be a file on the site ( http://ictsoc.de/code/org-atom.html) referenced in the mailing list 2) I've copied and pasted the minimal example to give this a try and when I execute 'org-export-as-atom' I get this in the buffer: ########## Exporting... if: Wrong number of arguments: (lambda (attr elements) "Return atom feed element. ATTR is a list of cons with xml attributes. ELEMENTS is a list of metadata elements for feed." (unless (memq (cons (quote xmlns) "http://www.w3.org/2005/Atom") attr) (setq attr (append (list (cons (quote xmlns) "http://www.w3.org/2005/Atom")) attr))) (atom-syndication-container (quote feed) attr elements)), 1 ########## I've tracked that down to a set of lines in atom-syndication.el which is stated as required in the mailing list. I don't understand elisp and after doing my best can't seem to figure out what the error was. There are a lot of multi-line comments only marked by quotation marks in the file I got from git (http://github.com/dmj/atom-syndication/). - I've got this in .emacs: (require 'org-exp) (require 'atom-syndication) (require 'org-atom) - This is the code that seems to be breaking in atom-syndication (bit before/bit after): /--------------- | (defun atom-syndication-element-entry (attr elements) | "Return atom entry element. | | ATTR is a list of cons with xml attributes. | ELEMENTS is a list of metadata elements for entry." | (atom-syndication-container 'entry attr elements)) | | (defun atom-syndication-element-feed (attr elements) | "Return atom feed element. | | ATTR is a list of cons with xml attributes. | ELEMENTS is a list of metadata elements for feed." | (unless (memq (cons 'xmlns "http://www.w3.org/2005/Atom") attr) | (setq attr (append | (list (cons 'xmlns "http://www.w3.org/2005/Atom")) attr))) | (atom-syndication-container 'feed attr elements)) | | (defun atom-syndication-element-source (attr elements) | "Return atom source element. | | ATTR is a list of cons with xml attributes. | ELEMENTS is a list of metadata elements for source." \--------------------- Not sure where to go from here... 3) Is it possible to just replace the URL with a file name and publish an atom feed to a file? I'm guessing that it's a yes but not sure... Thanks! John --000e0cd4b630051c900487abb444 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I've been looking at the mailing list archive here: http://www.mail-ar= chive.com/emacs-orgmode@gnu.org/msg22964.html

I have some questi= ons/issues:

1) is there a 'current' version of org-atom.el? The attachment = on the email listing is from March and there doesn't appear to be a fil= e on the site (http://ictso= c.de/code/org-atom.html) referenced in the mailing list

2) I've copied and pasted the minimal example to give this a try an= d when I execute 'org-export-as-atom' I get this in the buffer:
=
##########
Exporting...
if: Wrong number of arguments: (lambda (a= ttr elements) "Return atom feed element.

ATTR is a list of cons with xml attributes.
ELEMENTS is a list of me= tadata elements for feed." (unless (memq (cons (quote xmlns) "http://www.w3.org/2005/Atom")= attr) (setq attr (append (list (cons (quote xmlns) "http://www.w3.org/2005/Atom")) attr))) (ato= m-syndication-container (quote feed) attr elements)), 1
##########

I've tracked that down to a set of lines in atom-synd= ication.el which is stated as required in the mailing list. I don't und= erstand elisp and after doing my best can't seem to figure out what the= error was. There are a lot of multi-line comments only marked by quotation= marks in the file I got from git (http://github.com/dmj/atom-syndication/).

- I've got this in .emacs:
(require 'org-exp)
(require &#= 39;atom-syndication)
(require 'org-atom)

- This is the code t= hat seems to be breaking in atom-syndication (bit before/bit after):

/---------------
| (defun atom-syndication-element-entry (attr eleme= nts)
| =A0 "Return atom entry element.
|
| ATTR is a list of = cons with xml attributes.
| ELEMENTS is a list of metadata elements for = entry."
|=A0 (atom-syndication-container 'entry attr elements))
|
| (defu= n atom-syndication-element-feed (attr elements)
|=A0 "Return atom f= eed element.
|
| ATTR is a list of cons with xml attributes.
| ELE= MENTS is a list of metadata elements for feed."
|=A0 (unless (memq (cons 'xmlns "http://www.w3.org/2005/Atom") attr)
|=A0=A0=A0 (setq att= r (append
|=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 (list (cons = 9;xmlns "http://www.w3.org/200= 5/Atom")) attr)))
|=A0 (atom-syndication-container 'feed attr elements))
|
| (defun= atom-syndication-element-source (attr elements)
|=A0 "Return atom = source element.
|
| ATTR is a list of cons with xml attributes.
| = ELEMENTS is a list of metadata elements for source."
\---------------------

Not sure where to go from here...

3) I= s it possible to just replace the URL with a file name and publish an atom = feed to a file? I'm guessing that it's a yes but not sure...


Thanks!
John
--000e0cd4b630051c900487abb444-- --===============0543825398== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0543825398==--