From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: How do I use compilation mode? Date: Sun, 05 Feb 2012 16:20:30 +0100 Message-ID: <87fwep5mtd.fsf@wanadoo.es> References: <20120205150731.GA4131@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1328455242 16822 80.91.229.3 (5 Feb 2012 15:20:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 5 Feb 2012 15:20:42 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 05 16:20:41 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 1Ru3tR-0001BF-Bb for ged-emacs-devel@m.gmane.org; Sun, 05 Feb 2012 16:20:41 +0100 Original-Received: from localhost ([::1]:38398 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ru3tQ-0001L4-R2 for ged-emacs-devel@m.gmane.org; Sun, 05 Feb 2012 10:20:40 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:41916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ru3tO-0001Ko-IR for emacs-devel@gnu.org; Sun, 05 Feb 2012 10:20:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ru3tM-0006S2-DQ for emacs-devel@gnu.org; Sun, 05 Feb 2012 10:20:38 -0500 Original-Received: from impaqm2.telefonica.net ([213.4.138.18]:18457 helo=telefonica.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ru3tL-0006Rs-U1 for emacs-devel@gnu.org; Sun, 05 Feb 2012 10:20:36 -0500 Original-Received: from IMPmailhost4.adm.correo ([10.20.102.125]) by IMPaqm2.telefonica.net with bizsmtp id WEMd1i00d2iL0W23NFLYb2; Sun, 05 Feb 2012 16:20:32 +0100 Original-Received: from qcore ([88.11.106.32]) by IMPmailhost4.adm.correo with BIZ IMP id WFLW1i00C0hxhHC1kFLX15; Sun, 05 Feb 2012 16:20:32 +0100 X-Brightmail-Tracker: AAAAAA== X-original-sender: 981711563@telefonica.net In-Reply-To: <20120205150731.GA4131@acm.acm> (Alan Mackenzie's message of "Sun, 5 Feb 2012 15:07:31 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 213.4.138.18 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:148189 Archived-At: 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))