From 3642e441bc8938387f0ed2ae30ea66f396e859ae Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Sun, 1 Aug 2010 10:08:35 +0200 Subject: [PATCH] Fix org-format-latex: don't throw an error if dir exists. From: Alexandre Passos > I was editing an org document on a server earlier today, remotely > using tramp, and continuously exporting it to html. When I added > LaTeX, it exported once and then not anymore, failing because it > couldn't create a directory anymore. So I found out that patching > org-export-latex to pass a "t" parameter to org-make-directory fixes > this, and it continues to work perfectly. This is the modified version > of that function, if anyone else is interested in this constrained > case. The only change I made was right under the "make sure directory > exists" comment. --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 19b28a3cd..d2c1fdf47 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -15868,7 +15868,7 @@ Some of the options can be changed using the variable (goto-char beg) (unless checkdir ; make sure the directory exists (setq checkdir t) - (or (file-directory-p todir) (make-directory todir))) + (or (file-directory-p todir) (make-directory todir t))) (unless executables-checked (org-check-external-command -- 2.11.4.GIT