From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Johan =?UTF-8?Q?Bockg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#2490: compilation only highlights the "E" of error Date: Tue, 12 Jul 2011 16:42:58 +0200 Message-ID: <87pqlfa7bh.fsf@gnu.org> References: <1yk57c4kwl.fsf@fencepost.gnu.org> <87hb6sserb.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1310483364 6051 80.91.229.12 (12 Jul 2011 15:09:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Jul 2011 15:09:24 +0000 (UTC) Cc: 2490@debbugs.gnu.org To: Lars Magne Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 12 17:09:19 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QgeaN-0004sH-FZ for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jul 2011 17:09:19 +0200 Original-Received: from localhost ([::1]:35972 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgeaL-00061A-PL for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jul 2011 11:09:18 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:32938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgeC1-0008Ha-GP for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2011 10:44:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QgeBv-0007f9-LH for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2011 10:44:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46189) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgeBv-0007ez-1H for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2011 10:44:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QgeBt-00015o-Tr; Tue, 12 Jul 2011 10:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Johan =?UTF-8?Q?Bockg=C3=A5rd?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Jul 2011 14:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 2490 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 2490-submit@debbugs.gnu.org id=B2490.13104817904134 (code B ref 2490); Tue, 12 Jul 2011 14:44:01 +0000 Original-Received: (at 2490) by debbugs.gnu.org; 12 Jul 2011 14:43:10 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgeB3-00014d-68 for submit@debbugs.gnu.org; Tue, 12 Jul 2011 10:43:09 -0400 Original-Received: from smtprelay-h22.telenor.se ([195.54.99.197]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgeAz-000147-Tm for 2490@debbugs.gnu.org; Tue, 12 Jul 2011 10:43:06 -0400 Original-Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167]) by smtprelay-h22.telenor.se (Postfix) with ESMTP id 53B30EAAFC for <2490@debbugs.gnu.org>; Tue, 12 Jul 2011 16:42:59 +0200 (CEST) X-SMTPAUTH-B2: [bocjoh] X-SENDER-IP: [85.228.203.189] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhFlANZcHE5V5Mu9PGdsb2JhbABThEaESJ4fCwEBAQE3Moh6ArEvkHuBK4QAgQ8Eoyk X-IronPort-AV: E=Sophos;i="4.65,521,1304287200"; d="scan'208";a="1747449550" Original-Received: from c-bdcbe455.04-211-6c6b701.cust.bredbandsbolaget.se (HELO muon.localdomain) ([85.228.203.189]) by ipb4.telenor.se with ESMTP; 12 Jul 2011 16:42:58 +0200 Original-Received: by muon.localdomain (Postfix, from userid 1000) id 668414843E7; Tue, 12 Jul 2011 16:42:58 +0200 (CEST) Mail-Copies-To: never In-Reply-To: (Lars Magne Ingebrigtsen's message of "Tue, 12 Jul 2011 14:29:15 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 12 Jul 2011 10:44:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:48734 Archived-At: Lars Magne Ingebrigtsen writes: > Johan Bockg=C3=A5rd writes: > >> font-lock-keywords -> compilation--ensure-parse -> >> compilation--parse-region -> compilation-parse-errors -> >> compilation-error-regexp-alist-alist >> >> The lines in *Compile-Log* are matched by the `gnu' entry in >> compilation-error-regexp-alist-alist (try `compilation-debug'): > > Thanks for finding this. I've now installed a patch that seems to fix > the bug. The compiler output is classified as error/warning/info based on which part of the expression that matched (see compilation-error-regexp-alist). Your change marks "...:Error" as a warning: --- a/lisp/progmodes/compile.el 2011-07-05 15:31:22 +0000 +++ b/lisp/progmodes/compile.el 2011-07-12 12:28:35 +0000 @@ -251,7 +251,7 @@ \\([0-9]*[^0-9\n]\\(?:[^\n :]\\| [^-/\n]\\|:[^ \n]\\)*?\\): ?\ \\([0-9]+\\)\\(?:[.:]\\([0-9]+\\)\\)?\ \\(?:-\\([0-9]+\\)?\\(?:\\.\\([0-9]+\\)\\)?\\)?:\ -\\(?: *\\(\\(?:Future\\|Runtime\\)?[Ww]arning\\|W:\\)\\|\ +\\(?: *\\(\\(?:Future\\|Runtime\\)?[Ww]arning\\|W:\\|[Ee]rror\\)\\|\ *\\([Ii]nfo\\(?:\\>\\|rmationa?l?\\)\\|I:\\|instantiated from\\|[Nn]ote\\= )\\|\ \[0-9]?\\(?:[^0-9\n]\\|$\\)\\|[0-9][0-9][0-9]\\)" 1 (2 . 4) (3 . 5) (6 . 7)) ^^^^^ 6th subexpression matches =3D> warning 7th subexpression matches =3D> info otherwise =3D> error I installed this patch instead: =3D=3D=3D modified file 'lisp/progmodes/compile.el' --- lisp/progmodes/compile.el 2011-07-05 15:31:22 +0000 +++ lisp/progmodes/compile.el 2011-07-12 14:14:25 +0000 @@ -253,7 +253,7 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"? \\(?:-\\([0-9]+\\)?\\(?:\\.\\([0-9]+\\)\\)?\\)?:\ \\(?: *\\(\\(?:Future\\|Runtime\\)?[Ww]arning\\|W:\\)\\|\ *\\([Ii]nfo\\(?:\\>\\|rmationa?l?\\)\\|I:\\|instantiated from\\|[Nn]ote\\= )\\|\ -\[0-9]?\\(?:[^0-9\n]\\|$\\)\\|[0-9][0-9][0-9]\\)" + *[Ee]rror\\|\[0-9]?\\(?:[^0-9\n]\\|$\\)\\|[0-9][0-9][0-9]\\)" 1 (2 . 4) (3 . 5) (6 . 7))