소스 검색

macro: Fix modification-time macro

* lisp/org-macro.el (org-macro-initialize-templates): Make second
argument optional for modification-time macro.
Nicolas Goaziou 4 년 전
부모
커밋
772f7acb65
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)