From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.bugs Subject: Re: Emacs-22.1 compilation-error-regexp Date: Tue, 6 May 2008 00:02:47 +1200 Message-ID: <18462.63335.493309.993331@kahikatea.snap.net.nz> References: <4817E3EB.6090601@rogers.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1209990721 25593 80.91.229.12 (5 May 2008 12:32:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 May 2008 12:32:01 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: bobmc@bobmc.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 05 14:32:35 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jszrt-00018a-PS for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 May 2008 14:32:34 +0200 Original-Received: from localhost ([127.0.0.1]:59331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JszrB-0001Cr-Sf for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 May 2008 08:31:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jszq5-0000WN-Bq for bug-gnu-emacs@gnu.org; Mon, 05 May 2008 08:30:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jszq3-0000V8-IB for bug-gnu-emacs@gnu.org; Mon, 05 May 2008 08:30:40 -0400 Original-Received: from [199.232.76.173] (port=44825 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jszq3-0000V0-AT for bug-gnu-emacs@gnu.org; Mon, 05 May 2008 08:30:39 -0400 Original-Received: from viper.snap.net.nz ([202.37.101.25]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jszq2-0007sI-GT for bug-gnu-emacs@gnu.org; Mon, 05 May 2008 08:30:39 -0400 Original-Received: from kahikatea.snap.net.nz (103.30.255.123.static.snap.net.nz [123.255.30.103]) by viper.snap.net.nz (Postfix) with ESMTP id 032C63D9F79; Tue, 6 May 2008 00:05:18 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 89E1C8FC6D; Tue, 6 May 2008 00:02:48 +1200 (NZST) In-Reply-To: <4817E3EB.6090601@rogers.com> X-Mailer: VM 7.19 under Emacs 22.2.50.2 X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17923 Archived-At: Bob McIsaac writes: > The compilation-error-regexp works for gcc output but not for > Openwatcom. However, it worked fine for emacs-21. It seems the regexp > no longer accepts parentheses around the line number. > > ----- gcc example is ok ---- > -*- mode: compilation; default-directory: "c:/altm/acp-7-3/build/" -*- > ../src/vi/vi_main.c:53: `xint' undeclared (first use in this function) > ../src/vi/vi_main.c:53: (Each undeclared identifier is reported only once > > ------- Open Watcom Make Version 1.7 -- not ok because of line number ====== > ..\src\ctrl\lister.c(109): Error! E1009: Expecting ';' but found '{' > ..\src\ctrl\lister.c(120): Warning! W201: Unreachable code > ..\src\ctrl\lister.c(109): Warning! W131: No prototype found for > function 'xif' This isn't really my area but it's such a concise bug report it deserves a reply. I've checked the changes below into the trunk. Can you please confirm that they work for you? In particular, when the filename is absolute, e.g., c:\src\ctrl\lister.c(109): .... -- Nick http://www.inet.net.nz/~nickrob *** compile.el.~1.468.~ 2008-05-03 21:40:59.000000000 +1200 --- compile.el 2008-05-05 23:48:46.000000000 +1200 *************** File = \\(.+\\), Line = \\([0-9]+\\)\\(? *** 323,328 **** --- 323,331 ---- (sun-ada "^\\([^, \n\t]+\\), line \\([0-9]+\\), char \\([0-9]+\\)[:., \(-]" 1 2 3) + (watcom + "\\(\\(?:[a-zA-Z]:\\)?[^:(\t\n]+\\)(\\([0-9]+\\)): \\(?:Error! E[0-9]+\\|Warning! W[0-9]+\\):" 1 2) + (4bsd "\\(?:^\\|:: \\|\\S ( \\)\\(/[^ \n\t()]+\\)(\\([0-9]+\\))\ \\(?:: \\(warning:\\)?\\|$\\| ),\\)" 1 2 nil (3)) *** compilation.txt.~1.20.~ 2008-02-26 00:21:25.000000000 +1300 --- compilation.txt 2008-05-05 23:49:17.000000000 +1200 *************** keyboard handler.c(537) : warning C4005: *** 263,268 **** --- 263,276 ---- d:\tmp\test.c(23) : error C2143: syntax error : missing ';' before 'if' + * Open Watcom + + symbol: watcom + + ..\src\ctrl\lister.c(109): Error! E1009: Expecting ';' but found '{' + ..\src\ctrl\lister.c(120): Warning! W201: Unreachable code + + * Oracle pro*c symbol: oracle