From mboxrd@z Thu Jan 1 00:00:00 1970 From: pw Subject: Re: modify postamble in html export Date: Fri, 20 Sep 2013 15:17:48 +0200 Message-ID: <523C4AFC.801@riseup.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VN0ar-00044d-MP for emacs-orgmode@gnu.org; Fri, 20 Sep 2013 09:18:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VN0al-00077K-Ih for emacs-orgmode@gnu.org; Fri, 20 Sep 2013 09:17:57 -0400 Received: from mx1.riseup.net ([198.252.153.129]:38153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VN0al-00077F-Aw for emacs-orgmode@gnu.org; Fri, 20 Sep 2013 09:17:51 -0400 References: 87pps4ooia.fsf@ericabrahamsen.net List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: eric@ericabrahamsen.net Cc: emacs-orgmode@gnu.org > You can override the whole thing by re-defining the `org-html-postable' > variable. Set it to a function which returns the string you want: > > (defun my-org-html-postamble () > (format "Last update : %s" (format-time-string "%d %b %Y"))) > > (setq org-html-postamble 'my-org-html-postamble) > > I didn't test that, but something like that ought to work. Thanks! I tried to paste your code into my .emacs and I received the following error when publishing : "org-html--build-pre/postamble: Wrong number of arguments: (lambda nil (format "Last update : %s" (format-time-string "%d %b %Y"))), 1" I don't know where is the problem. I tried then to do the same by modifying the variable "Org Export HTML Postamble Format". The default format is : '(("en" "

Author: %a (%e)

\n

Date: %d

\n

%c

\n

%v

")) So I changed it to (with the idea to change the string format (%s) later if working) : '(("en"

Last update: %s

")) (which add to my .emacs : '(org-html-postamble-format (quote (("en" "

Last update: %s

")))) But it does not change at all the postamble ""Created: 2013-09-19 jeu. 14:09"". So I'm stuck! pw