summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn J Foerch <jjfoerch@earthlink.net>2011-10-07 21:15:36 +0000
committerCarsten Dominik <carsten.dominik@gmail.com>2011-10-08 17:55:17 +0200
commita5d4783a7eacf6bf67317408e7c4feaea71b746e (patch)
treeeb1e9a9a7c6d06321e6a9a08a462302f773708ce
parenta6d74af2b93ba31d367f21bad9fef18d19ceb931 (diff)
downloadorg-mode-a5d4783a7eacf6bf67317408e7c4feaea71b746e.tar.gz
Short timestamp in org-log-note-headings
Two new format codes support insertion of a short-format time stamp. %d for an inactive time stamp, and %D for an active one. * lisp/org.el (org-log-note-headings): Document new %d and %D escapes. (org-store-log-note): Implement new %d and %D escapes. TINYCHANGE
-rw-r--r--lisp/org.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 4a11fc0..00cc7e0 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -2375,6 +2375,8 @@ context, and the cdr is the heading to be used. The heading may also be the
empty string.
%t in the heading will be replaced by a time stamp.
%T will be an active time stamp instead the default inactive one
+%d will be replaced by a short-format time stamp.
+%D will be replaced by an active short-format time stamp.
%s will be replaced by the new TODO state, in double quotes.
%S will be replaced by the old TODO state, in double quotes.
%u will be replaced by the user name.
@@ -12174,6 +12176,12 @@ EXTRA is additional text that will be inserted into the notes buffer."
(cons "%T" (format-time-string
(org-time-stamp-format 'long nil)
org-log-note-effective-time))
+ (cons "%d" (format-time-string
+ (org-time-stamp-format nil 'inactive)
+ org-log-note-effective-time))
+ (cons "%D" (format-time-string
+ (org-time-stamp-format nil nil)
+ org-log-note-effective-time))
(cons "%s" (if org-log-note-state
(concat "\"" org-log-note-state "\"")
""))