[Top][All Lists]

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

Re: [AUCTeX-devel] [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 36

From: Tassilo Horn
Subject: Re: [AUCTeX-devel] [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 363b751003c4b425b4b6c511740c95366481207c
Date: Tue, 17 Dec 2013 17:02:49 +0100
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

Luc Van Eycken <address@hidden> writes:

Hi Luc,

> I am working with an daily updated TeXLive installation, but I don't
> think hyperref generates something difficult to parse. As a reference
> I've included my log file.

Indeed, I can reproduce the problem with the log file you provided.  It
works for me because I use file_line_error_style = t in
/etc/texmf/web2c/texmf.cnf.  But that it works in that case is also a
coincidence: not my test.tex is on top of the stack as would be correct
but test.aux happens to be there which is good enough.

And you are right that the problem is in

  Package hyperref Message: Driver (autodetected): hpdftex.

where the closing paren removes the top of the TeX-error-file stack
where it shouldn't.

This minimal patch makes it work again for me in "normal" and
file_line_error mode.

--8<---------------cut here---------------start------------->8---
diff --git a/tex-buf.el b/tex-buf.el
index efc19b5..e6a3249 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -1489,8 +1489,9 @@ You might want to examine and modify the free variables 
 \\(?:[\\/]+\\(?:\\.+[^()\r\n{} \\/]*\\|[^()\r\n{} .\\/]+\
 \\(?: [^()\r\n{} .\\/]+\\)*\\(?:\\.[-0-9a-zA-Z_.]*\\)?\\)?\\)*\\)\
 )*\\(?: \\|\r?$\\)\\|"
-         ;; End of file
-         "\\()\\))*\\|"
+         ;; End of file.  The [^:] skips package messages like:
+         ;; Package hyperref Message: Driver (autodetected): hpdftex.
+         "\\()\\)[^:]\\|"
          ;; Hook to change line numbers
          " !\\(?:offset(\\([---0-9]+\\))\\|"
          ;; Hook to change file name
--8<---------------cut here---------------end--------------->8---

I just ignore closers that are followed by a colon and I also handle
each closer separately.  Not sure why the ")*" was there before, but the
result was that if multiple files where closed, only one was removed
from the stack.  Of course, that's better than having the correct file
already popped off the stack, but still it may report the error in the
wrong file.


reply via email to

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