Bläddra i källkod

macro: Fix modification-time macro

* lisp/org-macro.el (org-macro-initialize-templates): Make second
argument optional for modification-time macro.
Nicolas Goaziou 4 år sedan
förälder
incheckning
772f7acb65
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      lisp/org-macro.el

+ 1 - 1
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)