# HG changeset patch # User Andreas Schwab # Date 1294493486 -3600 # Node ID 85f869bc6e5ca23e56909f9f845a256540e2c433 # Parent f07ac5fe98937da70322a74b1b6092b81a0b623f Fixes: debbugs:7806 * 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. diff -r f07ac5fe9893 -r 85f869bc6e5c etc/ChangeLog --- a/etc/ChangeLog Fri Jan 07 18:53:50 2011 -0800 +++ b/etc/ChangeLog Sat Jan 08 14:31:26 2011 +0100 @@ -1,3 +1,7 @@ +2011-01-08 Andreas Schwab + + * compilation.txt: Add column to gcc-include sample. + 2011-01-08 Glenn Morris * PROBLEMS: -batch implies -q. @@ -5158,7 +5162,7 @@ ;; 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. diff -r f07ac5fe9893 -r 85f869bc6e5c etc/compilation.txt --- a/etc/compilation.txt Fri Jan 07 18:53:50 2011 -0800 +++ b/etc/compilation.txt Sat Jan 08 14:31:26 2011 +0100 @@ -233,7 +233,7 @@ 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: diff -r f07ac5fe9893 -r 85f869bc6e5c lisp/ChangeLog --- a/lisp/ChangeLog Fri Jan 07 18:53:50 2011 -0800 +++ b/lisp/ChangeLog Sat Jan 08 14:31:26 2011 +0100 @@ -1,3 +1,9 @@ +2011-01-08 Andreas Schwab + + * 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 * makefile.w32-in (EMACSOPT): Add --no-site-lisp. diff -r f07ac5fe9893 -r 85f869bc6e5c lisp/progmodes/compile.el --- a/lisp/progmodes/compile.el Fri Jan 07 18:53:50 2011 -0800 +++ b/lisp/progmodes/compile.el Sat Jan 08 14:31:26 2011 +0100 @@ -239,7 +239,9 @@ (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