From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Klein Subject: export of formatted date macro fails Date: Wed, 27 Sep 2017 14:50:41 +0200 Message-ID: <20170927145041.23ee2007@lt70.mpip-mainz.mpg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxBnh-0002Uc-Or for emacs-orgmode@gnu.org; Wed, 27 Sep 2017 08:50:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxBnd-0008VA-Oz for emacs-orgmode@gnu.org; Wed, 27 Sep 2017 08:50:53 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:65121) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dxBnd-0008UB-ES for emacs-orgmode@gnu.org; Wed, 27 Sep 2017 08:50:49 -0400 Received: from lt70.mpip-mainz.mpg.de ([194.95.63.248]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.183]) with ESMTPSA (Nemesis) id 0LqkxG-1dRgTE1m7e-00eKIX for ; Wed, 27 Sep 2017 14:50:46 +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" To: "emacs-orgmode@gnu.org" Hi, when I export a formatted date via the {{{date}}} macro _and_ use e.g. commas and/or spaces, I only get the first component in the exported file (tested for HTML and PDF export). E.g. in my document I have a date: #+DATE: [2008-11-09 Sun 11:00] and later the macro {{{date(%A, %B %e, %Y)}} The exported document only has the "Sunday" (%A) part of the date. Same for {{{date(%A,%B%e,%Y)}}. So far I see (org-timestamp-format timestamp "%A, %B %e, %Y") works for a timestamp created by (org-element-timestamp-parser). I don't understand the macro code at all (e.g.. org-macro-replace-all). Versions are: Org mode version 9.1.1 (release_9.1.1-7-g226d2f @ /home/roklein/.emacs.d/org-mode/lisp/) GNU Emacs 25.3.1 (x86_64-unknown-openbsd, GTK+ Version 2.24.31) of 2017-09-26 Any help is greatly appreciated. Thank you very much. Best regards Robert