Browse Source

Fix bug with non-existing timestamp directory.

Patch from Dan Davison.
Carsten Dominik 17 years ago
parent
commit
ed98782f9d
1 changed files with 3 additions and 1 deletions
  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))