Преглед на файлове

ox-latex: Fix temporary files removal when compiling files

* lisp/ox-latex.el (org-latex-compile): Assume temporary files are
  located in the output directory.

This partly reverts 120f8c0.
Nicolas Goaziou преди 8 години
родител
ревизия
1f87273fd2
променени са 1 файла, в които са добавени 1 реда и са изтрити 4 реда
  1. 1 4
      lisp/ox-latex.el

+ 1 - 4
lisp/ox-latex.el

@@ -3612,10 +3612,7 @@ produced."
       (when org-latex-remove-logfiles
 	(mapc #'delete-file
 	      (directory-files
-	       ;; Assume auxiliary files are created in current
-	       ;; directory instead of ".tex" file directory, which
-	       ;; may differ.
-	       default-directory
+	       (file-name-directory outfile)
 	       nil
 	       (concat (regexp-quote (file-name-base outfile))
 		       "\\(?:\\.[0-9]+\\)?\\."