diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-04-19 01:11:37 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-04-19 01:11:37 +0200 |
commit | 772f7acb6511699c701eb7af8b3c42ac3195f5ca (patch) | |
tree | ba4adafe28c6a26a0f7bdbed945839c03f8161c2 | |
parent | 949270d4bf0051ed6c1fce251684b6c79ffeeb21 (diff) | |
download | org-mode-772f7acb6511699c701eb7af8b3c42ac3195f5ca.tar.gz |
macro: Fix modification-time macro
* lisp/org-macro.el (org-macro-initialize-templates): Make second
argument optional for modification-time macro.
-rw-r--r-- | lisp/org-macro.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-macro.el b/lisp/org-macro.el index ea4d121..29c4036 100644 --- a/lisp/org-macro.el +++ b/lisp/org-macro.el @@ -166,7 +166,7 @@ a file, \"input-file\" and \"modification-time\"." `("modification-time" . ,(let ((modtime (file-attribute-modification-time (file-attributes visited-file)))) - (lambda (arg1 arg2 &rest _) + (lambda (arg1 &optional arg2 &rest _) (format-time-string arg1 (or (and (org-string-nw-p arg2) |