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.
This commit is contained in:
Andreas Schwab
2011-01-08 14:31:26 +01:00
parent e7a4241753
commit 7c8379331a
4 changed files with 15 additions and 3 deletions

View 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.
@@ -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.

View 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:

View 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.

View 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