emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [wish] pass project plist to preparation and completion function
@ 2010-02-28 20:51 David Maus
  2010-03-01 11:02 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: David Maus @ 2010-02-28 20:51 UTC (permalink / raw)
  To: Org Mode


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


Urgency: Low

A publishing project can define a preparation and a completion
function to prepare and finalize the export.  Currently both functions
that can be supplied in `org-publish-project-alist' are called without
any arguments.

I'm currently trying to write exporter functions that create an atom
or rss feed based on org files.  To create /one/ feed for /multiple/
input files it is necessary to open and close the feed in a
preparation and finalizing function.

The :preparation-function should write the feed's header (xml
declaration, information on the feed itself) and the finalizing
function should close the xml.  To achive this both functions have to
"know" which output file they have to operate on.

For me it seems best if both functions get the property list of the
publishing project in question passed as argument.

The urgency for this is low because my personal milestone is the basic
function of publishing one feed for one input file.

 -- David

--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... maus.david@gmail.com

[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 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] 2+ messages in thread

* Re: [wish] pass project plist to preparation and completion function
  2010-02-28 20:51 [wish] pass project plist to preparation and completion function David Maus
@ 2010-03-01 11:02 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2010-03-01 11:02 UTC (permalink / raw)
  To: David Maus; +Cc: Org Mode

Hi David,

the plist with the settings is dynamically scoped into
these calls as the lisp variable `project-plist'.  I guess it would be  
nice
to make them a proper argument, but that would likely break quite some  
code out there.

Maybe you can just use the dynamically-skoped variable, and I can  
guarantee that this remains stable....

- Carsten


That is not documented - but
On Feb 28, 2010, at 9:51 PM, David Maus wrote:

>
> Urgency: Low
>
> A publishing project can define a preparation and a completion
> function to prepare and finalize the export.  Currently both functions
> that can be supplied in `org-publish-project-alist' are called without
> any arguments.
>
> I'm currently trying to write exporter functions that create an atom
> or rss feed based on org files.  To create /one/ feed for /multiple/
> input files it is necessary to open and close the feed in a
> preparation and finalizing function.
>
> The :preparation-function should write the feed's header (xml
> declaration, information on the feed itself) and the finalizing
> function should close the xml.  To achive this both functions have to
> "know" which output file they have to operate on.
>
> For me it seems best if both functions get the property list of the
> publishing project in question passed as argument.
>
> The urgency for this is low because my personal milestone is the basic
> function of publishing one feed for one input file.
>
> -- David
>
> --
> OpenPGP... 0x99ADB83B5A4478E6
> Jabber.... dmjena@jabber.org
> Email..... maus.david@gmail.com
> _______________________________________________
> 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

- Carsten

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

end of thread, other threads:[~2010-03-01 11:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-28 20:51 [wish] pass project plist to preparation and completion function David Maus
2010-03-01 11:02 ` Carsten Dominik

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