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: How do I use compilation mode? Date: Sun, 5 Feb 2012 15:07:31 +0000 Message-ID: <20120205150731.GA4131@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1328454480 11723 80.91.229.3 (5 Feb 2012 15:08:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 5 Feb 2012 15:08:00 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 05 16:07:59 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 1Ru3h7-0003zn-VW for ged-emacs-devel@m.gmane.org; Sun, 05 Feb 2012 16:07:58 +0100 Original-Received: from localhost ([::1]:34063 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ru3h7-0007vV-Bx for ged-emacs-devel@m.gmane.org; Sun, 05 Feb 2012 10:07:57 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:49642) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ru3h1-0007vG-HO for emacs-devel@gnu.org; Sun, 05 Feb 2012 10:07:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ru3gx-0004D2-Ae for emacs-devel@gnu.org; Sun, 05 Feb 2012 10:07:51 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:31444 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ru3gx-0004CC-24 for emacs-devel@gnu.org; Sun, 05 Feb 2012 10:07:47 -0500 Original-Received: (qmail 81095 invoked by uid 3782); 5 Feb 2012 15:07:43 -0000 Original-Received: from acm.muc.de (pD951BDC2.dip.t-dialin.net [217.81.189.194]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 05 Feb 2012 16:07:40 +0100 Original-Received: (qmail 4232 invoked by uid 1000); 5 Feb 2012 15:07:31 -0000 Content-Disposition: inline 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:148188 Archived-At: Hi, Emacs. I'd like to use compilation mode. In particular, I have a log file and extracted lines like this into a separate buffer from it with grep: cc-mode.acm 47446:[^2012-01-26: mackenzie]: Enable ">>" as double template ender. I'd like to go to line 47446 in the log file by pressing CR on that line. The instructions on how to do this are not optimal. I've basically tried pushing elements onto the documented variables compilation-error-regexp-alist\\(-alist\\)? in the form that they're in those lists for other modes. 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. On typing CR in the pertinent buffer, I get the ironic error message "No error here". I've tried edebugging through compile.el, and just got lost in the complexity. Would somebody please help me out here. -- Alan Mackenzie (Nuremberg, Germany).