]> code.delx.au - gnu-emacs/commitdiff
* progmodes/compile.el (compilation-error-regexp-alist-alist):
authorChong Yidong <cyd@stupidchicken.com>
Tue, 5 Sep 2006 14:53:24 +0000 (14:53 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Tue, 5 Sep 2006 14:53:24 +0000 (14:53 +0000)
Process the `gcc-include' after the `gnu' rule.

lisp/ChangeLog
lisp/progmodes/compile.el

index 86c2c2c6e90ecd80e97c30193fdc7477093db31c..7632c7dccb31c1c19ff4763e3cb9e689df861a45 100644 (file)
@@ -1,3 +1,8 @@
+2006-09-05  Chong Yidong  <cyd@stupidchicken.com>
+
+       * progmodes/compile.el (compilation-error-regexp-alist-alist):
+       Process the `gcc-include' after the `gnu' rule.
+
 2006-09-05  Kim F. Storm  <storm@cua.dk>
 
        * ido.el (ido-visit-buffer): Use buffer name if buffer arg is a buffer.
index e8c09113d39690642d6206a66a247162e8ccdda6..1c59409566a517984c6f134c8dcf03b9382344ca 100644 (file)
@@ -218,10 +218,6 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1))
      nil 1 nil 2 0
      (2 (compilation-face '(3))))
 
-    (gcc-include
-     "^\\(?:In file included\\|                \\) from \
-\\(.+\\):\\([0-9]+\\)\\(?:\\(:\\)\\|\\(,\\)\\)?" 1 2 nil (3 . 4))
-
     (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
@@ -241,6 +237,12 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1))
 \[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))