emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org f0dfbf0c39 14/14: ox-latex: Erase compile buffer at


From: ELPA Syncer
Subject: [elpa] externals/org f0dfbf0c39 14/14: ox-latex: Erase compile buffer at the start
Date: Sun, 22 Jan 2023 10:58:11 -0500 (EST)

branch: externals/org
commit f0dfbf0c3999e44ef7b6704e6584aa2a5d43f2d8
Author: TEC <git@tecosaur.net>
Commit: Ihor Radchenko <yantar92@posteo.net>

    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.
---
 lisp/ox-latex.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 156940703a..dc2062df50 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]