From: Thomas S. Dye <tsd@tsdye.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: Fabrice Niessen <fni-news@pirilampo.org>, emacs-orgmode@gnu.org
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 [thread overview]
Message-ID: <m2oaidr7m0.fsf@tsdye.com> (raw)
In-Reply-To: <87y4hneay5.fsf@nicolasgoaziou.fr>
[-- Attachment #1: Type: text/plain, Size: 125 bytes --]
Aloha Nicolas,
The attached patch is based on current maint branch.
Let me know if you have questions.
All the best,
Tom
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Patch for org.texi --]
[-- Type: text/x-patch, Size: 1621 bytes --]
From e5ab2427af7095db8c7f080dc8f9457021a10544 Mon Sep 17 00:00:00 2001
From: tsdye <tsd@tsdye.com>
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
[-- Attachment #3: Type: text/plain, Size: 553 bytes --]
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Hello,
>
> Thomas S. Dye <tsd@tsdye.com> writes:
>
>> A second patch is attached.
>
> Thank you.
>
>> From cb30697627afacc8950ef85b839f47d48371f39b Mon Sep 17 00:00:00 2001
>> From: tsdye <tsd@tsdye.com>
>> 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
next prev parent reply other threads:[~2015-08-11 18:41 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-06 16:33 What is the best way to set #+DATE to today's date? Kaushal
2015-08-06 16:44 ` Rasmus
2015-08-06 17:00 ` Kaushal
2015-08-06 17:41 ` Rasmus
2015-08-06 18:18 ` John Kitchin
2015-08-06 19:25 ` Kaushal
2015-08-06 19:45 ` Kaushal
2015-08-06 19:50 ` Thomas S. Dye
2015-08-06 19:58 ` Kaushal
2015-08-06 20:51 ` [PATCH] " Thomas S. Dye
2015-08-06 21:22 ` Kaushal
2015-08-06 21:48 ` Thomas S. Dye
2015-08-06 21:54 ` Fabrice Niessen
2015-08-06 22:12 ` Thomas S. Dye
2015-08-07 8:53 ` Nicolas Goaziou
2015-08-07 14:01 ` Kaushal
2015-08-07 14:20 ` Suvayu Ali
2015-08-07 14:52 ` Kaushal
2015-08-11 18:40 ` Thomas S. Dye [this message]
2015-08-11 22:59 ` Nicolas Goaziou
2015-08-07 4:31 ` Suvayu Ali
2015-08-06 18:12 ` Nick Dokos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2oaidr7m0.fsf@tsdye.com \
--to=tsd@tsdye.com \
--cc=emacs-orgmode@gnu.org \
--cc=fni-news@pirilampo.org \
--cc=mail@nicolasgoaziou.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.