From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Denis Bueno Newsgroups: gmane.emacs.devel Subject: Re: behavior of `compilation-error-regexp-alist' Date: Wed, 15 Jun 2005 12:08:29 -0400 Message-ID: <6dbd4d00050615090839733b52@mail.gmail.com> References: <6dbd4d00050611071565d74d83@mail.gmail.com> Reply-To: Denis Bueno NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1118853011 24036 80.91.229.2 (15 Jun 2005 16:30:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Jun 2005 16:30:11 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 15 18:30:10 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Diali-00073v-Fc for ged-emacs-devel@m.gmane.org; Wed, 15 Jun 2005 18:29:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Diaqx-0008Pe-AN for ged-emacs-devel@m.gmane.org; Wed, 15 Jun 2005 12:34:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Diaqe-0008Lz-3o for emacs-devel@gnu.org; Wed, 15 Jun 2005 12:34:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DiakZ-00070E-N4 for emacs-devel@gnu.org; Wed, 15 Jun 2005 12:28:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DiakW-0006qw-2s for emacs-devel@gnu.org; Wed, 15 Jun 2005 12:28:20 -0400 Original-Received: from [64.233.184.197] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DiaSq-0006Zn-Sv for emacs-devel@gnu.org; Wed, 15 Jun 2005 12:10:05 -0400 Original-Received: by wproxy.gmail.com with SMTP id 36so639900wra for ; Wed, 15 Jun 2005 09:08:29 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Pl5FEM9kckHxmMajZAPPQg3Q2LBHbGh9vEEx1ZAxJrrH74zDcKyX/GMW8u4DOUnV3t6fQjRMm6mTaeu1LTjuXnQkZ5KkBkTG1VDTWqpGqCkqEMWzc9/pAgpEzZh6aGU7/6g2n+U6HUxXXrb9bb04x0LLg57eBeQ1gVqbVNR7LUU= Original-Received: by 10.54.156.4 with SMTP id d4mr3734481wre; Wed, 15 Jun 2005 09:08:29 -0700 (PDT) Original-Received: by 10.54.43.38 with HTTP; Wed, 15 Jun 2005 09:08:29 -0700 (PDT) Original-To: emacs-devel@gnu.org In-Reply-To: <6dbd4d00050611071565d74d83@mail.gmail.com> Content-Disposition: inline X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:38895 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38895 Sorry about not including Emacs version info before. FWIW, I just tried the same thing, and all works as expected (GNU Emacs 22.0.50.8 (powerpc-apple-darwin8.1.0) of 2005-06-13). -Denis On 6/11/05, Denis Bueno wrote: > All, >=20 > I've been trying to get Emacs to compile a C project using `compile' > and comint-mode, so that I can check the errors in the output of > `make'. The problem is that C-x ` doesn't display the next error, it > prints "Moved past last error" in the minibuffer and nothing in the > *compilation* buffer[1] is highlghted, even though there definitely > are errors. >=20 > I'm using gcc 4.0 (Apple) on 10.4.1. What puzzles me is that the > regexp in `compilation-error-regexp-alist-alist' for "gnu" matches an > error line in my make output: >=20 > (string-match "^\\(?:[[:alpha:]][-[:alnum:].]+: > ?\\)?\\([/.]*[a-zA-Z]:?[^ \n:]*\\|{standard input}\\): > ?\\([0-9]+\\)\\([.:]?\\)\\([0-9]+\\)?\\(?:-\\(?:\\([0-9]+\\)\\3\\)?\\.?\\= ([0-9]+\\)?\\)?:\\(?: > *\\(\\(?:Future\\|Runtime\\)?[Ww]arning\\|W:\\)\\| > *\\([Ii]nfo\\(?:\\>\\|rmationa?l?\\)\\|I:\\)\\)?" "server.c:76: error: > 'aoeu' undeclared (first use in this function)") > =3D> 0 >=20 > as I think it should, and yet I'm seeing my symptoms. It must be that > the gnu regexp isn't being applied for some reason. >=20 > How should I proceed in debugging this? Do I need extra .emacs configurat= ion? >=20 > Thanks in advance. >=20 > -Denis >=20 > [1] > The contents of the compilation buffer I'm referring to: >=20 > -*- mode: compilation; default-directory: > "~/cvswork/edu/cs4210/project/src/" -*- > make -k > gcc -DOBFUSCATED_DEBUG -g -Wall -std=3Dc99 -pedantic -o server.o -c serve= r.c > server.c: In function 'server_loop': > server.c:76: error: 'aoeu' undeclared (first use in this function) > server.c:76: error: (Each undeclared identifier is reported only once > server.c:76: error: for each function it appears in.) > make: *** [server.o] Error 1 > make: Target `all' not remade because of errors. >=20 > Comint exited abnormally with code 2 at Sat Jun 11 10:11:46 >