From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?=C5=81ukasz?= Stelmach Subject: Re: custom postamble in HTML export Date: Thu, 07 Oct 2010 11:26:04 +0200 Message-ID: <871v82cq1f.fsf@dasa3.iem.pw.edu.pl> References: <87bp79260i.fsf@dasa3.iem.pw.edu.pl> <929A9F5D-E599-4190-B279-FF74FE541A8C@gmail.com> <87tyl0vbdt.fsf@dasa3.iem.pw.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=42677 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P3mk2-00078u-9k for emacs-orgmode@gnu.org; Thu, 07 Oct 2010 05:26:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P3mk0-0008KH-OY for emacs-orgmode@gnu.org; Thu, 07 Oct 2010 05:26:22 -0400 Received: from lo.gmane.org ([80.91.229.12]:56541) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P3mk0-0008Jk-Ig for emacs-orgmode@gnu.org; Thu, 07 Oct 2010 05:26:20 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P3mjz-0002lk-2O for emacs-orgmode@gnu.org; Thu, 07 Oct 2010 11:26:19 +0200 Received: from dasa3.iem.pw.edu.pl ([194.29.147.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Oct 2010 11:26:19 +0200 Received: from lukasz.stelmach by dasa3.iem.pw.edu.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Oct 2010 11:26:19 +0200 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@gnu.org Carsten Dominik writes: > On Oct 5, 2010, at 6:43 PM, Łukasz Stelmach wrote: > >> Carsten Dominik writes: >> >>> :postamble is meant to completely replace the automatic >>> postamble Org creates, >> >> But what if I like the information it puts there? > > Then you have a case which Org currently does not handle. Yes, it does. org-export-html-postamble may also be a function. So it'll be a lot better for all of us, and especially for the code, if I just c'n'p the automatic postamble code as a custom function and add there what I need. The only minor problem here is how to load the function only when it's needed, no sooner than I open any of the files that require it. But it's "for something completely different" ;-) > You would have to introduce a new variable, org-export-html-postamble- > extra and arrange for it to be handled correctly with publishing > properties etc etc. According to Larry Wall[1], laziness is one of the greatest virtues of programmers[2]. Right next to impatiens and hubris ;-) [1] http://en.wikipedia.org/wiki/Larry_Wall [2] http://en.wikipedia.org/wiki/Larry_Wall#Virtues_of_a_programmer -- Miłego dnia, Łukasz Stelmach