[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 42e95938ed: org-latex-compile: Fix erasing PDF outp
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 42e95938ed: org-latex-compile: Fix erasing PDF output buffer late |
Date: |
Sun, 30 Apr 2023 05:05:20 -0400 (EDT) |
branch: externals/org
commit 42e95938eda05efc9901b6b582857c63f55e715e
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>
org-latex-compile: Fix erasing PDF output buffer late
* lisp/ox-latex.el (org-latex-compile): Clear the PDF output log
buffer before running compile command.
Fixes regression introduced in 0dfbf0c3.
Reported-by: John Kitchin <jkitchin@andrew.cmu.edu>
Link:
https://orgmode.org/list/CALEYq0_t38_gsmjE-qgPCX07-V0P8FYwYEt9R4AT0dZ_SnXRuA@mail.gmail.com
---
lisp/ox-latex.el | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 9bd30bbe0e..6feaf93328 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -4307,11 +4307,15 @@ produced."
(?L . ,(shell-quote-argument compiler))))
(log-buf-name "*Org PDF LaTeX Output*")
(log-buf (and (not snippet) (get-buffer-create log-buf-name)))
- (outfile (org-compile-file texfile process "pdf"
- (format "See %S for details" log-buf-name)
- log-buf spec)))
+ outfile)
+ ;; Erase compile buffer at the start.
(with-current-buffer log-buf
(erase-buffer))
+ (setq outfile
+ (org-compile-file
+ texfile process "pdf"
+ (format "See %S for details" log-buf-name)
+ log-buf spec))
(org-latex-compile--postprocess outfile log-buf snippet)
;; Return output file name.
outfile))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/org 42e95938ed: org-latex-compile: Fix erasing PDF output buffer late,
ELPA Syncer <=