auctex-devel
[Top][All Lists]
Advanced

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

[AUCTeX-devel] Re: 11.82; preview-latex incompatible with e-TeX's "-file


From: Ralf Angeli
Subject: [AUCTeX-devel] Re: 11.82; preview-latex incompatible with e-TeX's "-file-line-error" option
Date: Tue, 25 Apr 2006 21:51:11 +0200

* David Kastrup (2006-04-20) writes:

> I just checked in some code into the AUCTeX CVS that should deal with
> file-line-error style messages in preview-latex.  This will not help
> with AUCTeX errors, though, and I am not sure that it will work in
> multiple-directory situations right now when the file names in the
> error messages are relative.
>
> It might make sense to try to propagate the respective changes, or at
> least the patterns, to AUCTeX's error handling.

The following patch should do the trick:

--- tex-buf.el  21 Apr 2006 20:17:09 +0200      1.250
+++ tex-buf.el  25 Apr 2006 21:44:51 +0200      
@@ -842,7 +842,7 @@
                    (match-string 1 output-file)
                  "dvi")))))
   (if process (TeX-format-mode-line process))
-  (if (re-search-forward "^! " nil t)
+  (if (re-search-forward "^\\(!\\|.*:[0-9]+:\\) " nil t)
       (progn
        (message (concat name " errors in `" (buffer-name)
                         "'. Use C-c ` to display."))
@@ -1340,7 +1340,9 @@
        (progn
          (re-search-forward
           (concat "\\("
-                  "^! \\|"
+                  ;; Match regular error indicator "!" as well as
+                  ;; file-line-error error indicator "file:line: error".
+                  "^\\(!\\|.*:[0-9]+:\\) \\|"
                   "(\\|"
                   ")\\|"
                   "\\'\\|"
@@ -1354,7 +1356,7 @@
          (let ((string (TeX-match-buffer 1)))
 
            (cond (;; TeX error
-                  (string= string "! ")
+                  (match-end 2)
                   (TeX-error)
                   nil)
 
-- 
Ralf

reply via email to

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