Skip to content

feature request/suggestion: announce directory changes #260

@ghost

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:

  1. Always make sure emacs current 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.

  2. 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, emacs doesn'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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions