Ihor Radchenko <[email protected]> writes:
>>> The starting place is `org-compile-file'. Its LOG-BUF argument defines
>>> where the compilation output is dumped. You can augment that output
>>> with some information about which file is being compiled and using
>>> which commands.
I think I've got it, but only partially. The problem is in
`org-compile-file', but we don't want to change the output to LOG-BUF as
that is the output of LaTeX which is being parsed for warnings/errors.
The messages about what file is being worked on are sent to *Messages* in
the first line of org-latex-compile. The problem, I think, is in the
following piece of code in org-latex-compile--postprocess:
(let ((warnings (org-latex--collect-warnings log-buf)))
(funcall
(if warnings
(apply-partially
#'display-warning
'(ox-latex))
#'message)
(concat "PDF file produced"
(cond
((eq warnings 'error) " with errors.")
(warnings (concat " with warnings: " warnings))
(t ".")))))))
I think the issue is that display-warning defaults to sending it's
warnings to *Warnings* which, in this case, doesn't make sense (there
are other cases in ox-latex which may be okay?). Another argument needs
to be given to display-warning to tell it to output to the *Messages*
buffer, but the buffer name is the last argument to display-warning, so
how would you do that?
--
David Masterson