Kaynağa Gözat

New %T escape for note headings

Patch by Richard Riley.
Carsten Dominik 15 yıl önce
ebeveyn
işleme
a95427de18
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      lisp/org.el

+ 4 - 0
lisp/org.el

@@ -2143,6 +2143,7 @@ The value is an alist, with the car being a symbol indicating the note
 context, and the cdr is the heading to be used.  The heading may also be the
 context, and the cdr is the heading to be used.  The heading may also be the
 empty string.
 empty string.
 %t in the heading will be replaced by a time stamp.
 %t in the heading will be replaced by a time stamp.
+%T will be an acive time stamp instead the default inacive one
 %s will be replaced by the new TODO state, in double quotes.
 %s will be replaced by the new TODO state, in double quotes.
 %S will be replaced by the old 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.
 %u will be replaced by the user name.
@@ -11377,6 +11378,9 @@ EXTRA is additional text that will be inserted into the notes buffer."
 		   (cons "%t" (format-time-string
 		   (cons "%t" (format-time-string
 			       (org-time-stamp-format 'long 'inactive)
 			       (org-time-stamp-format 'long 'inactive)
 			       (current-time)))
 			       (current-time)))
+		   (cons "%T" (format-time-string
+			       (org-time-stamp-format 'long nil)
+			       (current-time)))
 		   (cons "%s" (if org-log-note-state
 		   (cons "%s" (if org-log-note-state
 				  (concat "\"" org-log-note-state "\"")
 				  (concat "\"" org-log-note-state "\"")
 				""))
 				""))