Sfoglia il codice sorgente

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

Patch by Francesco Pizzolante
Carsten Dominik 15 anni fa
parent
commit
d980be6d8b
2 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 0
      lisp/ChangeLog
  2. 0 1
      lisp/org-latex.el

+ 2 - 0
lisp/ChangeLog

@@ -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'.

+ 0 - 1
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)