EXPERIMENTAL/org-e-latex.el (org-e-latex-collect-errors): Small fix

This commit is contained in:
Nicolas Goaziou 2012-01-05 22:29:16 +01:00
parent 427327a94e
commit 08bad014c7
1 changed files with 2 additions and 2 deletions

View File

@ -1987,10 +1987,10 @@ none."
(re-search-forward "Undefined control sequence" nil t)) (re-search-forward "Undefined control sequence" nil t))
(setq errors (concat errors " [undefined control sequence]"))) (setq errors (concat errors " [undefined control sequence]")))
(when (save-excursion (when (save-excursion
(re-search-forward "^! LaTeX.*?Error")) (re-search-forward "^! LaTeX.*?Error" nil t))
(setq errors (concat errors " [LaTeX error]"))) (setq errors (concat errors " [LaTeX error]")))
(when (save-excursion (when (save-excursion
(re-search-forward "^! Package.*?Error")) (re-search-forward "^! Package.*?Error" nil t))
(setq errors (concat errors " [package error]"))) (setq errors (concat errors " [package error]")))
(and (org-string-nw-p errors) (org-trim errors))))))) (and (org-string-nw-p errors) (org-trim errors)))))))