emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] elpa 88fbf80 20/51: Fix in TeX sentinels


From: Tassilo Horn
Subject: [elpa] elpa 88fbf80 20/51: Fix in TeX sentinels
Date: Sun, 22 May 2016 07:22:48 +0000 (UTC)

branch: elpa
commit 88fbf8021c7da3c2bf14a646663bd0eb0ccc1448
Author: Mosè Giordano <address@hidden>
Commit: Mosè Giordano <address@hidden>

    Fix in TeX sentinels
    
    * tex-buf.el (TeX-TeX-sentinel, TeX-LaTeX-sentinel): Use
      `TeX-error-overview-make-entries' to test presence of errors or
      warnings.  This is the same test carried in `TeX-master-directory' and
      prevents from getting an error when
      `TeX-error-overview-open-after-TeX-run' is non-nil but
      `TeX-debug-warnings' and/or `TeX-debug-bad-boxes' are nil.
---
 tex-buf.el |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/tex-buf.el b/tex-buf.el
index 58e1602..2b1e1a3 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -1358,7 +1358,9 @@ errors or warnings to show."
       (progn
        (if TeX-parse-all-errors
            (TeX-parse-all-errors))
-       (if (and TeX-error-overview-open-after-TeX-run TeX-error-list)
+       (if (and TeX-error-overview-open-after-TeX-run
+                (TeX-error-overview-make-entries
+                 (TeX-master-directory)))
            (TeX-error-overview)))
     (message (concat name ": formatted " (TeX-current-pages)))
     (if (with-current-buffer TeX-command-buffer
@@ -1461,7 +1463,9 @@ Open the error overview if
 errors or warnings to show."
   (if TeX-parse-all-errors
       (TeX-parse-all-errors))
-  (if (and TeX-error-overview-open-after-TeX-run TeX-error-list)
+  (if (and TeX-error-overview-open-after-TeX-run
+          (TeX-error-overview-make-entries
+           (TeX-master-directory)))
       (TeX-error-overview))
   (cond ((TeX-TeX-sentinel-check process name))
        ((and (save-excursion



reply via email to

[Prev in Thread] Current Thread [Next in Thread]