From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [wish] pass project plist to preparation and completion function Date: Mon, 1 Mar 2010 12:02:40 +0100 Message-ID: References: <87ljedulra.wl%maus.david@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nm3Oh-0002sb-8S for emacs-orgmode@gnu.org; Mon, 01 Mar 2010 06:02:47 -0500 Received: from [140.186.70.92] (port=42096 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nm3Og-0002rT-4o for emacs-orgmode@gnu.org; Mon, 01 Mar 2010 06:02:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nm3Of-0007Ks-Av for emacs-orgmode@gnu.org; Mon, 01 Mar 2010 06:02:45 -0500 Received: from ey-out-1920.google.com ([74.125.78.146]:31171) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nm3Of-0007KU-0w for emacs-orgmode@gnu.org; Mon, 01 Mar 2010 06:02:45 -0500 Received: by ey-out-1920.google.com with SMTP id 5so618182eyb.34 for ; Mon, 01 Mar 2010 03:02:43 -0800 (PST) In-Reply-To: <87ljedulra.wl%maus.david@gmail.com> 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: 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