monnier pushed a commit to branch externals/auctex
in repository elpa.

commit 363b751003c4b425b4b6c511740c95366481207c
Author: Luc Van Eycken <luc.vaneyc...@esat.kuleuven.be>
Date:   Tue Dec 17 09:01:29 2013 +0100

    Skip comment or file in parens in output.
    
    * tex-buf.el (TeX-parse-error): Skip comment (or file) between
    parentheses.
    
    Signed-off-by: Tassilo Horn <t...@gnu.org>
---
 ChangeLog  |    5 +++++
 tex-buf.el |    7 ++++++-
 2 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 786dcad..02e9772 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-12-17  Luc Van Eycken  <luc.vaneyc...@esat.kuleuven.be>
+
+       * tex-buf.el (TeX-parse-error): Skip comment (or file) between
+       parentheses.
+
 2013-12-01  Tassilo Horn  <t...@gnu.org>
 
        * latex.el (LaTeX-common-initialization): Move disabling of
diff --git a/tex-buf.el b/tex-buf.el
index efc19b5..b4f851f 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -1482,6 +1482,10 @@ You might want to examine and modify the free variables 
`file',
         (concat
          ;; TeX error
          "^\\(!\\|\\(.*?\\):[0-9]+:\\) \\|"
+         ;; Skip comment (or file) between parentheses in one line
+         ;; Avoids problems with "Driver (autodetected):" from hyperref
+         ;; and with "(version 2006.09.02)." from supp-pdf.mkii
+         "([^()\r\n{}]*)\\|"
          ;; New file
          "(\\(\"[^\"]*?\"\\|/*\
 \\(?:\\.+[^()\r\n{} \\/]*\\|[^()\r\n{} .\\/]+\
@@ -1571,7 +1575,8 @@ You might want to examine and modify the free variables 
`file',
         ((match-beginning 6)
          (setq TeX-error-file
                (list (TeX-match-buffer 6)))
-         t)))))
+         t)
+        (t t)))))
 
 (defun TeX-error ()
   "Display an error."

Reply via email to