branch: elpa
commit a8a803ce2f3fdd043fad69ce6c0c34f22f75dad9
Author: Tassilo Horn <t...@gnu.org>
Commit: Tassilo Horn <t...@gnu.org>

    Call TeX-after-compilation-finished-functions on warnings
    
    * tex-buf.el (TeX-LaTeX-sentinel): Skip calling
    TeX-after-compilation-finished-functions only if there are real errors.
---
 tex-buf.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tex-buf.el b/tex-buf.el
index dca6614..b271a98 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -1551,7 +1551,7 @@ Rerun to get mark in right position\\." nil t)
                 (md5 (current-buffer)))))
         (push (cons idx-file t) LaTeX-idx-changed-alist)))
 
-  (unless TeX-error-list
+  (unless (memq 'error (mapcar #'car TeX-error-list))
     (run-hook-with-args 'TeX-after-compilation-finished-functions
                        (with-current-buffer TeX-command-buffer
                          (expand-file-name

Reply via email to