From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Barton Subject: Re: Customizing Timestamps in html Export. Date: Wed, 03 Dec 2014 09:03:12 +0000 Message-ID: <547ED1CF.4080900@wilkesley.net> References: <5475B84D.2060407@wilkesley.net> <547C5AF9.3060302@wilkesley.net> <87tx1el70b.fsf@nicolasgoaziou.fr> Reply-To: ian@manor-farm.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xw5qD-0008A3-FA for emacs-orgmode@gnu.org; Wed, 03 Dec 2014 04:03:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xw5q7-00026C-Jq for emacs-orgmode@gnu.org; Wed, 03 Dec 2014 04:03:21 -0500 Received: from mail2.wilkesley.net ([109.74.196.44]:44810 helo=li40-130.members.linode.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xw5q7-00025r-En for emacs-orgmode@gnu.org; Wed, 03 Dec 2014 04:03:15 -0500 Received: from scamper2.bantercat.co.uk (unknown [46.33.134.31]) (Authenticated sender: lists@wilkesley.net) by li40-130.members.linode.com (Postfix) with ESMTPSA id E0F4410EB01 for ; Wed, 3 Dec 2014 09:03:12 +0000 (UTC) In-Reply-To: <87tx1el70b.fsf@nicolasgoaziou.fr> 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 On 02/12/14 09:45, Nicolas Goaziou wrote: > Hello, > > Ian Barton writes: > >> However, the using the minimal.el: >> >> #+begin_src emacs-lisp >> ;; activate debugging >> (setq debug-on-error t) >> (setq debug-on-quit t) >> >> (add-to-list 'load-path "~/.emacs.d/src/lisp") >> (require 'org) >> >> ;; The following lines are always needed. Choose your own keys. >> (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) >> (global-set-key "\C-cl" 'org-store-link) >> (global-set-key "\C-ca" 'org-agenda) >> (global-set-key "\C-cb" 'org-iswitchb) >> >> (setq org-html-metadata-timestamp-format "%a %d %B %Y ") >> (setq org-time-stamp-custom-formats "%a %d %B %Y ") >> >> #+end_src >> >> and the following test.org: >> >> #+begin_src >> >> The date: [2014-12-01 Mon] >> >> #+end_src >> >> gives the following result with C-c C-x C-t >> >> The date: [2014-12-01 Mon] >> >> Since nobody else has reported this, I imagine it's a case of user >> stupidity, rather than a bug. >> >> Can anyone point out my error? > > You need to set `org-display-custom-times' to a non-nil value, too. If > you need this feature only during export, you could use a BIND keyword: > > #+BIND: org-display-custom-times t > > assuming `org-export-allow-bind-keywords' is also non-nil. Thanks for the help. Unfortunately it still doesn't work. Using the following minimal.el and test files: #+begin_src emacs-lisp ;; activate debugging (setq debug-on-error t) (setq debug-on-quit t) (add-to-list 'load-path "~/.emacs.d/src/lisp") (require 'org) ;; The following lines are always needed. Choose your own keys. (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) (global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-ca" 'org-agenda) (global-set-key "\C-cb" 'org-iswitchb) (setq org-export-allow-bind-keywords t) (setq org-display-custom-times t) (setq org-html-metadata-timestamp-format "%a %d %B %Y") (setq org-time-stamp-custom-formats "%a %d %B %Y") #+end_src #+begin_src #+BIND: org-display-custom-times t The date: [2014-12-01 Mon] #+end_src I see the message in the mini buffer "Timestamps are overlaid with custom format", but the format is unchanged. I have tried both with and without the #+bind directive. Using: Emacs: 24.4.1 Org version: a712cec60fbb9a3384f209f96d43b8e3dfd2d9ce Ian.