Function: org-latex--collect-warnings
org-latex--collect-warnings is a byte-compiled function defined in
ox-latex.el.gz.
Signature
(org-latex--collect-warnings BUFFER)
Documentation
Collect some warnings from "pdflatex" command output.
BUFFER is the buffer containing output. Return collected
warnings types as a string, error if a LaTeX error was
encountered or nil if there was none.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ox-latex.el.gz
(defun org-latex--collect-warnings (buffer)
"Collect some warnings from \"pdflatex\" command output.
BUFFER is the buffer containing output. Return collected
warnings types as a string, `error' if a LaTeX error was
encountered or nil if there was none."
(with-current-buffer buffer
(save-excursion
(goto-char (point-max))
(when (re-search-backward "^[ \t]*This is .*?TeX.*?Version" nil t)
(if (re-search-forward "^!" nil t) 'error
(let ((case-fold-search t)
(warnings ""))
(dolist (warning org-latex-known-warnings)
(when (save-excursion (re-search-forward (car warning) nil t))
(setq warnings (concat warnings " " (cdr warning)))))
(org-string-nw-p (org-trim warnings))))))))