Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7889561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:07:52+00:00 2026-06-03T06:07:52+00:00

I am using Emacs 23 and have the following problem: I run our project’s

  • 0

I am using Emacs 23 and have the following problem:

I run our project’s build system from within Emacs like M-x compile -> cd /foo/bar && ./build

The build system now does some magic, “cd”s into some subdirectory for the build process and then gcc throws an error:

../src/somesource.cc:50 error: blablabla

Now the problem is that Emacs won’t find that path, because it assumes the compile process started out in /foo/bar, and not in /foo/bar/builddir. So the leading “../” is not working for Emacs, e.g. when running compile-goto-error. Is there a way to tell Emacs to try skipping leading “../”?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T06:07:53+00:00Added an answer on June 3, 2026 at 6:07 am

    The best solution might be to change the build system to emit messages when it changes directories. Emacs looks for

    Entering directory `...'
    ... 
    Leaving directory `...'
    

    (See the compilation-directory-matcher variable. If your build system does emit messages when it changes directories, but they’re not in the format Emacs is looking for, you can add new regexps to compilation-directory-matcher.)

    The other solution is to change compilation-search-path (which is a list of directories).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem when compiling shared libraries and executables using emacs on Windows
I have the following code in my .emacs: (if (null window-system) (progn (require 'color-theme)
I created a TAGS file for emacs in my django project using the following
When using emacs for writing erlang source code, I have made the following configuration.
I'm using emacs and I have written a script which uses current-buffer. However the
I have been using emacs for a while but not so familiar with lisp
I am using emacs 24 on Windows 7 and have installed technomancy's clojure-mode along
I'm using emacs tramp mode to remotely edit files over ssh. The problem is
I am using emacs 23.2 with the GTK toolkit. I built emacs from source
So I wrote the following code in linux(Ubuntu) using the emacs text editor it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.