From: João Távora Date: Thu, 28 Mar 2019 17:47:43 +0000 (+0000) Subject: Revert "Avoid occasional confusion of Flymake C/C++ backend" X-Git-Tag: emacs-27.0.90~2128 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f75e68fc9be2e7d9e3da46a83204ea88e4854174;p=emacs.git Revert "Avoid occasional confusion of Flymake C/C++ backend" This reverts commit 67c3a3af1d9e2582193d5ea33b6c190e79ad56e6, which creates more problems than it solves. --- 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