From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas S. Dye Subject: Re: [PATCH] Re: What is the best way to set #+DATE to today's date? Date: Tue, 11 Aug 2015 08:40:55 -1000 Message-ID: References: <87bnekmknk.fsf@gmx.us> <86egjg3wx8.fsf@example.com> <87y4hneay5.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPEUE-0004cA-Pu for emacs-orgmode@gnu.org; Tue, 11 Aug 2015 14:41:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPEUA-0005Pw-Lr for emacs-orgmode@gnu.org; Tue, 11 Aug 2015 14:41:22 -0400 Received: from gproxy5-pub.mail.unifiedlayer.com ([67.222.38.55]:36881) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ZPEUA-0005Pf-E3 for emacs-orgmode@gnu.org; Tue, 11 Aug 2015 14:41:18 -0400 In-reply-to: <87y4hneay5.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: Nicolas Goaziou Cc: Fabrice Niessen , emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Aloha Nicolas, The attached patch is based on current maint branch. Let me know if you have questions. All the best, Tom --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Edit-date-and-time-macros.patch Content-Description: Patch for org.texi >From e5ab2427af7095db8c7f080dc8f9457021a10544 Mon Sep 17 00:00:00 2001 From: tsdye Date: Tue, 11 Aug 2015 08:34:50 -1000 Subject: [PATCH] Edit date and time macros --- doc/org.texi | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/doc/org.texi b/doc/org.texi index e9c7cf1..710f102 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -10216,16 +10216,20 @@ export. @item @{@{@{date@}@}@} @itemx @{@{@{date(@var{FORMAT})@}@}@} +@cindex date, macro +This macro refers to the @code{#+DATE} keyword. @var{FORMAT} is an optional +argument to the @code{@{@{@{date@}@}@}} macro that will be used only if +@code{#+DATE} is a single timestamp. @var{FORMAT} should be a format string +understood by @code{format-time-string}. + @itemx @{@{@{time(@var{FORMAT})@}@}@} @itemx @{@{@{modification-time(@var{FORMAT})@}@}@} -@cindex date, macro @cindex time, macro @cindex modification time, macro -These macros refer to the @code{#+DATE} keyword, the current date, and the -modification time of the file being exported, respectively. @var{FORMAT} -should be a format string understood by @code{format-time-string}. Note that -@var{FORMAT} is an optional argument to the @code{@{@{@{date@}@}@}} macro, -and that it will only be used if @code{#+DATE} is a single timestamp. +These macros refer to the date and time when the document is exported and to +the modification date and time of the file being exported, respectively. +@var{FORMAT} should be a format string understood by +@code{format-time-string}. @item @{@{@{input-file@}@}@} @cindex input file, macro -- 2.5.0 --=-=-= Content-Type: text/plain Nicolas Goaziou writes: > Hello, > > Thomas S. Dye writes: > >> A second patch is attached. > > Thank you. > >> From cb30697627afacc8950ef85b839f47d48371f39b Mon Sep 17 00:00:00 2001 >> From: tsdye >> Date: Thu, 6 Aug 2015 12:08:34 -1000 >> Subject: [PATCH 2/2] More date and time macro edits > > I think the commit message is confusing ("more"?). Also, I cannot apply > the patch on maint branch. Could you rebase it on top of that branch? > > Regards, -- Thomas S. Dye http://www.tsdye.com --=-=-=--