浏览代码

Fix bug with non-existing timestamp directory.

Patch from Dan Davison.
Carsten Dominik 17 年之前
父节点
当前提交
ed98782f9d
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      lisp/org-publish.el

+ 3 - 1
lisp/org-publish.el

@@ -312,7 +312,9 @@ If functions in this hook modify the buffer, it will be saved."
 		     org-publish-timestamp-directory)
 	    ;; there is a timestamp, check if FILENAME is newer
 	    (file-newer-than-file-p
-	     filename (org-publish-timestamp-filename filename))))
+	     filename (org-publish-timestamp-filename filename)))
+	(make-directory org-publish-timestamp-directory)
+	t)
     ;; don't use timestamps, always return t
     t))