-
Notifications
You must be signed in to change notification settings - Fork 83
Description
Compared to some other open issues, this one should be easy.
ocamlbuild should say
Entering directory `/foo/bar/baz'
and
Leaving directory `/foo/bar/baz'
just like gmake does. This is not just a frill, which would be very out of character for a Unix family developer tool. It exists (or so I think) to help emacs [1] locate files mentioned in error messages, to enable making them into hyperlinks. Without this trick, when one wants to start a compile process, there are two choices:
-
Always make sure
emacscurrent directory is the top project directory. This usually means opening a file in this directory, or switching to a buffer where such a file is already open. -
Just start it, and after you click on an error message deal with the annoying prompt "Locate this error in: " or something like that. And you have to deal with it every time you click,
emacsdoesn't remember the relation between its current directory and the one you answered.
I got so sick of this today that I put together this [2] shell hack. It really shouldn't be necessary.
[1]
And maybe vi too, but I never start builds from vi, or edit Ocaml with it for that matter.
[2]
Gist