emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Publishing feed
Date: Fri, 28 May 2010 13:30:36 -0500	[thread overview]
Message-ID: <AANLkTinEt9nVJCG0OKLqn3rl6tKy8JjgGy1aDw9Ay0jZ@mail.gmail.com> (raw)


[-- 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

             reply	other threads:[~2010-05-28 18:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-28 18:30 John Hendy [this message]
2010-05-29 13:22 ` Publishing feed David Maus
2010-06-01 17:11   ` John Hendy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTinEt9nVJCG0OKLqn3rl6tKy8JjgGy1aDw9Ay0jZ@mail.gmail.com \
    --to=jw.hendy@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).