David Masterson <dsmaster...@icloud.com> writes:

> 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?

Rather than trying to redirect warnings into messages buffer, you can
augment the warning itself with the file name. It will be easier I think.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to