From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: modify postamble in html export Date: Sat, 21 Sep 2013 12:23:27 +0800 Message-ID: <87eh8iola8.fsf@ericabrahamsen.net> References: <523C4AFC.801@riseup.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39919) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNEiR-0000IA-Jy for emacs-orgmode@gnu.org; Sat, 21 Sep 2013 00:22:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VNEiL-0002JL-FP for emacs-orgmode@gnu.org; Sat, 21 Sep 2013 00:22:43 -0400 Received: from plane.gmane.org ([80.91.229.3]:52557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNEiL-0002J5-8u for emacs-orgmode@gnu.org; Sat, 21 Sep 2013 00:22:37 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VNEiH-0006PB-7X for emacs-orgmode@gnu.org; Sat, 21 Sep 2013 06:22:33 +0200 Received: from 114.250.132.20 ([114.250.132.20]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Sep 2013 06:22:33 +0200 Received: from eric by 114.250.132.20 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Sep 2013 06:22:33 +0200 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: emacs-orgmode@gnu.org pw writes: >> 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" Whoops, that's what I get for posting untested code... As Nicholas points out the function should take an argument, but in your simplest case you can ignore it: (defun my-org-html-postamble (plist) (format "Last update : %s" (format-time-string "%d %b %Y")))