From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Paul Smith Newsgroups: gmane.emacs.bugs Subject: bug#37484: [PATCH] Support GNU make error messages in compile mode. Date: Sun, 22 Sep 2019 16:28:18 -0400 Message-ID: <20190922202817.28319-1-psmith@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="167121"; mail-complaints-to="usenet@blaine.gmane.org" To: 37484@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 22 22:30:33 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iC8V6-000hKH-It for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Sep 2019 22:30:32 +0200 Original-Received: from localhost ([::1]:48592 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iC8V5-0006uh-2A for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Sep 2019 16:30:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47972) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iC8Up-0006uZ-Jy for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2019 16:30:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iC8Uj-0007VE-0S for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2019 16:30:11 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53972) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iC8Uc-0007QM-Pt for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2019 16:30:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iC8Uc-0005KA-J5 for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2019 16:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Smith Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Sep 2019 20:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37484 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.156918416020361 (code B ref -1); Sun, 22 Sep 2019 20:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Sep 2019 20:29:20 +0000 Original-Received: from localhost ([127.0.0.1]:34560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iC8Tw-0005IL-8E for submit@debbugs.gnu.org; Sun, 22 Sep 2019 16:29:20 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:54159) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iC8Tv-0005IF-0O for submit@debbugs.gnu.org; Sun, 22 Sep 2019 16:29:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47896) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iC8Tu-0006hw-0H for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2019 16:29:18 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iC8Ts-0007Gi-4A for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2019 16:29:17 -0400 Original-Received: from pool-98-118-0-140.bstnma.fios.verizon.net ([98.118.0.140]:45040 helo=homebase.bo2.nuodb.com) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iC8Tr-00013m-Oh for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2019 16:29:15 -0400 X-Mailer: git-send-email 2.18.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:166942 Archived-At: * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Match GNU make error messages. * test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data): Test GNU make error message matching. --- lisp/progmodes/compile.el | 6 ++++++ test/lisp/progmodes/compile-tests.el | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index f0b34c702c..a98aa0c8e5 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -274,6 +274,12 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1)) (ruby-Test::Unit "^[\t ]*\\[\\([^(].*\\):\\([1-9][0-9]*\\)\\(\\]\\)?:in " 1 2) + (gmake + ;; Set GNU make error messages as INFO level. + ;; It starts with the name of the make program which is variable, + ;; so don't try to match it. + ": \\*\\*\\* \\[\\(\\(.+?\\):\\([0-9]+\\): .+\\)\\]" 2 3 nil 0 1) + (gnu ;; The first line matches the program name for diff --git a/test/lisp/progmodes/compile-tests.el b/test/lisp/progmodes/compile-tests.el index 0d4f7f2ff2..61e1cd110d 100644 --- a/test/lisp/progmodes/compile-tests.el +++ b/test/lisp/progmodes/compile-tests.el @@ -180,6 +180,12 @@ 1 0 31 "/usr/include/c++/3.3/backward/iostream.h") (" from test_clt.cc:1:" 1 nil 1 "test_clt.cc") + ;; gmake + ("make: *** [Makefile:20: all] Error 2" 5 nil 20 "Makefile" 0) + ("make[4]: *** [sub/make.mk:19: all] Error 127" 8 nil 19 "sub/make.mk" 0) + ("gmake[4]: *** [sub/make.mk:19: all] Error 2" 9 nil 19 "sub/make.mk" 0) + ("gmake-4.3[4]: *** [make.mk:1119: all] Error 2" 13 nil 1119 "make.mk" 0) + ("Make-4.3: *** [make.INC:1119: dir/all] Error 2" 9 nil 1119 "make.INC" 0) ;; gnu ("foo.c:8: message" 1 nil 8 "foo.c") ("../foo.c:8: W: message" 1 nil 8 "../foo.c") -- 2.18.0