ox-latex: Do not message "PDF file produced" for fragments
* lisp/ox-latex.el (org-latex-compile): Do not message "PDF file produced" for fragments.
This commit is contained in:
parent
6b3aa71061
commit
919722a6a6
|
@ -3163,19 +3163,20 @@ Return PDF file name or an error if it couldn't be produced."
|
||||||
(error (format "PDF file %s wasn't produced" pdffile))
|
(error (format "PDF file %s wasn't produced" pdffile))
|
||||||
;; Else remove log files, when specified, and signal end of
|
;; Else remove log files, when specified, and signal end of
|
||||||
;; process to user, along with any error encountered.
|
;; process to user, along with any error encountered.
|
||||||
(when (and (not snippet) org-latex-remove-logfiles)
|
(unless snippet
|
||||||
(dolist (file (directory-files
|
(when org-latex-remove-logfiles
|
||||||
out-dir t
|
(dolist (file (directory-files
|
||||||
(concat (regexp-quote base-name)
|
out-dir t
|
||||||
"\\(?:\\.[0-9]+\\)?"
|
(concat (regexp-quote base-name)
|
||||||
"\\."
|
"\\(?:\\.[0-9]+\\)?"
|
||||||
(regexp-opt org-latex-logfiles-extensions))))
|
"\\."
|
||||||
(delete-file file)))
|
(regexp-opt org-latex-logfiles-extensions))))
|
||||||
(message (concat "PDF file produced"
|
(delete-file file)))
|
||||||
(cond
|
(message (concat "PDF file produced"
|
||||||
((eq warnings 'error) " with errors.")
|
(cond
|
||||||
(warnings (concat " with warnings: " warnings))
|
((eq warnings 'error) " with errors.")
|
||||||
(t ".")))))
|
(warnings (concat " with warnings: " warnings))
|
||||||
|
(t "."))))))
|
||||||
;; Return output file name.
|
;; Return output file name.
|
||||||
pdffile))))
|
pdffile))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue