From f75e68fc9be2e7d9e3da46a83204ea88e4854174 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Thu, 28 Mar 2019 17:47:43 +0000 Subject: [PATCH] Revert "Avoid occasional confusion of Flymake C/C++ backend" This reverts commit 67c3a3af1d9e2582193d5ea33b6c190e79ad56e6, which creates more problems than it solves. --- lisp/progmodes/flymake-cc.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lisp/progmodes/flymake-cc.el b/lisp/progmodes/flymake-cc.el index 248c95a256f..1b449bd0793 100644 --- a/lisp/progmodes/flymake-cc.el +++ b/lisp/progmodes/flymake-cc.el @@ -58,9 +58,7 @@ SOURCE." (cl-loop while (search-forward-regexp - (concat - "^\\(In file included from \\)?:\\([0-9]+\\)\\(?::\\([0-9]+\\)\\)" - "?:[\n ]?\\(error\\|warning\\|note\\): \\(.*\\)$") + "^\\(In file included from \\)?:\\([0-9]+\\)\\(?::\\([0-9]+\\)\\)?:\n?\\(.*\\): \\(.*\\)$" nil t) for msg = (match-string 5) for (beg . end) = (flymake-diag-region -- 2.39.2