Fix org-format-latex: don't throw an error if dir exists.
commit3642e441bc8938387f0ed2ae30ea66f396e859ae
authorBastien Guerry <bzg@altern.org>
Sun, 1 Aug 2010 08:08:35 +0000 (1 10:08 +0200)
committerBastien Guerry <bzg@altern.org>
Sun, 1 Aug 2010 08:08:35 +0000 (1 10:08 +0200)
treea0f56b0284c201fe52434797c31e3262c1491814
parent8221861f725966b153a34277e700520f537c9202
Fix org-format-latex: don't throw an error if dir exists.

From: Alexandre Passos <alexandre.tp@gmail.com>

> 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