PDF export: Don't explicitly remove the old PDF file, just overwrite

Patch by Francesco Pizzolante
This commit is contained in:
Carsten Dominik 2009-11-23 15:38:03 +01:00
parent fdd40ea46f
commit d980be6d8b
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,8 @@
2009-11-23 Carsten Dominik <carsten.dominik@gmail.com>
* 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'.

View File

@ -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)