emacs-devel
[Top][All Lists]
Advanced

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

[patch] fix "in file included from" with gcc


From: Daniel Colascione
Subject: [patch] fix "in file included from" with gcc
Date: Sat, 09 Jan 2010 23:52:52 -0500
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The "in file included from" line is never an error; it's not even a
warning. It's just a pointer to an error.

Also, the original comment notwithstanding, it only seems to work when
we match
"in file included from" *before* we match the gnu style.

*** compile.el  2008-02-09 09:33:51.000000000 -0500
- --- new-compile.el    2010-01-09 23:50:18.000000000 -0500
***************
*** 218,223 ****
- --- 218,229 ----
       nil 1 nil 2 0
       (2 (compilation-face '(3))))

+     ;; The `gnu' style below can incorrectly match gcc's "In file
+     ;; included from" message, so we process this first.
+     (gcc-include
+      "^\\(?:In file included\\|                \\) from \
+ \\(.+\\):\\([0-9]+\\)\\(?:\\(:\\)\\|\\(,\\)\\)?" 1 2 nil 0)
+
      (gnu
       ;; I have no idea what this first line is supposed to match, but it
       ;; makes things ambiguous with output such as "foo:344:50:blabla"
since
***************
*** 237,248 ****
  \[0-9]?\\(?:[^0-9\n]\\|$\\)\\|[0-9][0-9][0-9]\\)"
       1 (2 . 5) (4 . 6) (7 . 8))

- -     ;; The `gnu' style above can incorrectly match gcc's "In file
- -     ;; included from" message, so we process that first. -- cyd
- -     (gcc-include
- -      "^\\(?:In file included\\|                \\) from \
- - \\(.+\\):\\([0-9]+\\)\\(?:\\(:\\)\\|\\(,\\)\\)?" 1 2 nil (3 . 4))
- -
      (lcc
       "^\\(?:E\\|\\(W\\)\\), \\([^(\n]+\\)(\\([0-9]+\\),[ \t]*\\([0-9]+\\)"
       2 3 4 (1))
- --- 243,248 ----
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)

iEYEARECAAYFAktJXSQACgkQ17c2LVA10VtItwCdEA69LyVtbol10gu/Mg996SJB
Os0AoL+kcSGM3VhlfNCFtSf1oPYo6irR
=ko6C
-----END PGP SIGNATURE-----




reply via email to

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