From d980be6d8bbc2866a1c059edb99aa742ae686315 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Mon, 23 Nov 2009 15:38:03 +0100 Subject: [PATCH] PDF export: Don't explicitly remove the old PDF file, just overwrite Patch by Francesco Pizzolante --- lisp/ChangeLog | 2 ++ lisp/org-latex.el | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e77df9208..80495bb3e 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,6 +1,8 @@ 2009-11-23 Carsten Dominik * org-latex.el (org-export-as-pdf): Remove also the .idx file. + (org-export-as-pdf): Don't remove the old PDF file before making + the new one. * org-mouse.el (org-mouse-end-headline, org-mouse-insert-item) (org-mouse-context-menu): Use `org-looking-back'. diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 5aa640923..6e1356d39 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -698,7 +698,6 @@ when PUB-DIR is set, use this as the publishing directory." (re-search-forward "\\\\bibliography{" nil t)))) cmd) (with-current-buffer outbuf (erase-buffer)) - (and (file-exists-p pdffile) (delete-file pdffile)) (message "Processing LaTeX file...") (if (and cmds (symbolp cmds)) (funcall cmds file)