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 17:25:47 +0800 Message-ID: <87fvsy34ro.fsf@ericabrahamsen.net> References: <523C4AFC.801@riseup.net> <87eh8iola8.fsf@ericabrahamsen.net> <523D6047.5020707@riseup.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48852) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNJR8-0000ad-Om for emacs-orgmode@gnu.org; Sat, 21 Sep 2013 05:25:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VNJR1-00008Q-FI for emacs-orgmode@gnu.org; Sat, 21 Sep 2013 05:25:10 -0400 Received: from mail-pb0-f47.google.com ([209.85.160.47]:63938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNJR1-00004q-8v for emacs-orgmode@gnu.org; Sat, 21 Sep 2013 05:25:03 -0400 Received: by mail-pb0-f47.google.com with SMTP id rr4so1301073pbb.20 for ; Sat, 21 Sep 2013 02:25:01 -0700 (PDT) In-Reply-To: <523D6047.5020707@riseup.net> (pw's message of "Sat, 21 Sep 2013 11:00:55 +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: pw Cc: emacs-orgmode@gnu.org On 09/21/13 17:00 PM, pw wrote: > Le 21/09/2013 06:23, Eric Abrahamsen a =C3=A9crit : >> 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"))) > > Thanks. > > I tried this new code (by pasting it into .emacs). But I have the > default postamble in the result. > > I tried then to achieve the same but by using org-customization which > put into .emacs this : > > '(org-html-postamble t) > '(org-html-postamble-format (quote (("en" "Last update : %d")))) > > If it was working I would try to modify %d to have a %d %b %Y format. > But for now I have only "Last update : " without time... I finally actually tried this myself... I'm guessing that your problems are coming from pasting things without actually eval'ing them. I put this in scratch: (defun my-org-html-postamble (plist) (format "Last update : %s" (format-time-string "%d %b %Y"))) (setq org-html-postamble 'my-org-html-postamble) And hit "C-x C-e" after both statements, and a test document exported with the proper postamble:
Last update : 21 Sep 2013
Can you make sure you've evaluated the forms? I would have thought your org-customizations above would work, but there are multiple ways to solve this problem, and perhaps you've got competing solutions. Try reloading org, or worst case restarting emacs? Eric