From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: How do I use compilation mode? Date: Sun, 5 Feb 2012 17:53:42 +0000 Message-ID: <20120205175342.GA3477@acm.acm> References: <20120205150731.GA4131@acm.acm> <87fwep5mtd.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1328464448 16191 80.91.229.3 (5 Feb 2012 17:54:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 5 Feb 2012 17:54:08 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?iso-8859-1?Q?=D3scar?= Fuentes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 05 18:54:07 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ru6Hr-0000d9-9n for ged-emacs-devel@m.gmane.org; Sun, 05 Feb 2012 18:54:03 +0100 Original-Received: from localhost ([::1]:40390 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ru6Hq-0000Ol-R1 for ged-emacs-devel@m.gmane.org; Sun, 05 Feb 2012 12:54:02 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:57648) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ru6Hn-0000Oe-Qs for emacs-devel@gnu.org; Sun, 05 Feb 2012 12:54:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ru6Hm-0007og-Li for emacs-devel@gnu.org; Sun, 05 Feb 2012 12:53:59 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:24290 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ru6Hm-0007oS-8j for emacs-devel@gnu.org; Sun, 05 Feb 2012 12:53:58 -0500 Original-Received: (qmail 92335 invoked by uid 3782); 5 Feb 2012 17:53:54 -0000 Original-Received: from acm.muc.de (pD9557F46.dip.t-dialin.net [217.85.127.70]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 05 Feb 2012 18:53:51 +0100 Original-Received: (qmail 3482 invoked by uid 1000); 5 Feb 2012 17:53:42 -0000 Content-Disposition: inline In-Reply-To: <87fwep5mtd.fsf@wanadoo.es> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:148198 Archived-At: Hello, Óscar/ On Sun, Feb 05, 2012 at 04:20:30PM +0100, Óscar Fuentes wrote: > Hello Alan. > Alan Mackenzie writes: > > In particular, I pushed 'acm onto compilation-error-regexp-alist and > > ((acm "\\(cc-mode.acm\\) \\([0-9]+\\):\\[\\^[0-9]+-[0-9]+-[0-9?]+:[^]]*\\]:" > > 1 2 nil)) > > onto compilation-error-regexp-alist. > That symbol `acm' there is wrong. The solution is simpler. For instance, > this is what I use for matching the diagnostics reported by my compiler: > (add-to-list 'compilation-error-regexp-alist > '("^\\(?:..\\[[ 0-9]+\\]+ \\)*\\([a-zA-Z0-9:\\/\\.-]+\.lp0\\)\(\\([0-9]+\\)\)" > 1 2 nil)) That worked like a dream. Thanks! -- Alan Mackenzie (Nuremberg, Germany).