Fixes: debbugs:7806
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 8 Jan 2011 13:31:26 +0000 (14:31 +0100)
committerAndreas Schwab <schwab@linux-m68k.org>
Sat, 8 Jan 2011 13:31:26 +0000 (14:31 +0100)
* etc/compilation.txt: Add column to gcc-include sample.

* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist)
[gcc-include]: Tighten file name match, add match for column
number.

etc/ChangeLog
etc/compilation.txt
lisp/ChangeLog
lisp/progmodes/compile.el

index 22c6742..9d8a3b8 100644 (file)
@@ -1,3 +1,7 @@
+2011-01-08  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * compilation.txt: Add column to gcc-include sample.
+
 2011-01-08  Glenn Morris  <rgm@gnu.org>
 
        * PROBLEMS: -batch implies -q.
 ;; End:
 
   Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002,
-    2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
+    2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
     Free Software Foundation, Inc.
 
   This file is part of GNU Emacs.
index 9cf39c9..9ee2e16 100644 (file)
@@ -233,7 +233,7 @@ symbol: gcc-include
 The last file, i.e. the one you are compiling, is the interesting one.
 
 In file included from /usr/include/c++/3.3/backward/warn.h:4,
-                 from /usr/include/c++/3.3/backward/iostream.h:31,
+                 from /usr/include/c++/3.3/backward/iostream.h:31:0,
                  from test_clt.cc:1:
 
 
index d57a8a3..fce4875 100644 (file)
@@ -1,3 +1,9 @@
+2011-01-08  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * progmodes/compile.el (compilation-error-regexp-alist-alist)
+       [gcc-include]: Tighten file name match, add match for column
+       number.  (Bug#7806)
+
 2011-01-08  Glenn Morris  <rgm@gnu.org>
 
        * makefile.w32-in (EMACSOPT): Add --no-site-lisp.
index da9b213..eabfe22 100644 (file)
@@ -239,7 +239,9 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1))
 
     (gcc-include
      "^\\(?:In file included \\|                 \\|\t\\)from \
-\\(.+\\):\\([0-9]+\\)\\(?:\\(:\\)\\|\\(,\\|$\\)\\)?" 1 2 nil (3 . 4))
+\\([0-9]*[^0-9\n]\\(?:[^\n :]\\| [^-/\n]\\|:[^ \n]\\)*?\\):\
+\\([0-9]+\\)\\(?::\\([0-9]+\\)\\)?\\(?:\\(:\\)\\|\\(,\\|$\\)\\)?"
+     1 2 3 (4 . 5))
 
     (gnu
      ;; The first line matches the program name for