From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: glen stark Newsgroups: gmane.emacs.help Subject: Re: emacs, jumping to relative file locations in compiler output. Date: Thu, 27 Mar 2014 12:26:30 GMT Organization: Easynews - www.easynews.com Message-ID: References: <5DUYu.30765$4k7.4511@fx31.am4> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1395923411 8096 80.91.229.3 (27 Mar 2014 12:30:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Mar 2014 12:30:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 27 13:30:22 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WT9Rs-0007yP-Gd for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Mar 2014 13:30:20 +0100 Original-Received: from localhost ([::1]:53253 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WT9Rr-0005qC-Ru for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Mar 2014 08:30:19 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!news.roellig-ltd.de!open-news-network.org!cyclone01.ams2.highwinds-media.com!voer-me.highwinds-media.com!peer01.am1!peering.am1!peer02.fr7!news.highwinds-media.com!post02.fr7!fx31.am4.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Original-Lines: 36 Original-X-Complaints-To: abuse@easynews.com X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly. X-Received-Body-CRC: 4051341580 X-Received-Bytes: 2132 Original-Xref: usenet.stanford.edu gnu.emacs.help:204513 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96782 Archived-At: On Thu, 27 Mar 2014 12:14:57 +0000, glen stark wrote: > In the company I'm working for, the build system is set up to cd in > various directories, and the call make. When a compiler error is > returned, it is of the form: > > In file included from ../../../../include/whatever.h:33:0 > > emacs is then unable to determine where to look for the file in > question. > > Changing out build system is big project, but I'd like to be able to > jump around to compiler errors in emacs. In practice I know what path I > should substitute for "../../../../" > > Is there someway I can tell emacs to regex substitute a fixed path for a > string of the form "../../"? > > Is there an alternative solution to my problem (that doesn't mean > modifying the build system :) ). > > Many thanks, > > Glen Sorry, I have a follow up: After reading more on the subject, I think the path is not the issue. We are outputing "Entering X" and "Leaving x" messages, so I guess emacs should be able to handle this. The problem might be that the string with the error looks like this: EE=../../../../include/Check.h: In function 'Bool check::isNull(UShort)': If I look at plain old g++ output, I don't see the EE. So perhaps this is the problem?