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

commit 0071c4d8cb734b2c64ef300df2a816d89557b409
Author: Tassilo Horn <t...@gnu.org>
Date:   Wed Dec 18 14:49:34 2013 +0100

    Handle package messages with parenthesized text.
    
    * tex-buf.el (TeX-parse-error): Don't confuse ) in package
    messages with EOF.
---
 ChangeLog  |    5 +++++
 tex-buf.el |    5 +++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 786dcad..771fb6a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-12-18  Tassilo Horn  <t...@gnu.org>
+
+       * tex-buf.el (TeX-parse-error): Don't confuse ) in package
+       messages with EOF.
+
 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..e6a3249 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -1489,8 +1489,9 @@ You might want to examine and modify the free variables 
`file',
 \\(?:[\\/]+\\(?:\\.+[^()\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

Reply via email to