emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Publishing feed
@ 2010-05-28 18:30 John Hendy
  2010-05-29 13:22 ` David Maus
  0 siblings, 1 reply; 3+ messages in thread
From: John Hendy @ 2010-05-28 18:30 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 2539 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 3243 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-06-01 17:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-28 18:30 Publishing feed John Hendy
2010-05-29 13:22 ` David Maus
2010-06-01 17:11   ` John Hendy

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).