Le vendredi 15 novembre 2013 13:35:19 Raphaël Proust a écrit :
> On Fri, Nov 15, 2013 at 1:26 PM, François Bobot <francois.bobot@cea.fr> wrote:
> > On 15/11/2013 13:52, Johan Mazel wrote:
> >> […]
> > There is another glitch if you have a big code base with many
> > sub-...-subdirectories: merlin look for the .merlin in the current directory
> > and the parent directory.[…]
>
> Maybe there should be an option for Merlin to look arbitrarily far
> into parent directories, stopping whenever a .git, .svn, _darcs, &c.
> is found. (This is generally a good indication that one is at the root
> of a project.)
>
> Does that make sense?
> Would that help?
>
That's what I do in ocp-index, a bit of a hack but quite handy, and I've not had problems with it so far. (As François points out, .svn is probably not a good idea though)
Implementation here: https://github.com/OCamlPro/ocp-index/blob/master/src/indexOptions.ml#L62