ox-latex: Erase compile buffer at the start

* lisp/ox-latex.el (org-latex-compile): Before running the compile
command, erase the log buffer to ensure that stale/old logging is
cleared.
This commit is contained in:
TEC 2022-12-25 00:59:21 +08:00 committed by Ihor Radchenko
parent b84018633e
commit f0dfbf0c39
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 2 additions and 0 deletions

View File

@ -4301,6 +4301,8 @@ produced."
(outfile (org-compile-file texfile process "pdf"
(format "See %S for details" log-buf-name)
log-buf spec)))
(with-current-buffer log-buf
(erase-buffer))
(org-latex-compile--postprocess outfile log-buf snippet)
;; Return output file name.
outfile))