Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
emacs mode : caml-set-compile-command is annoying #4469
Original bug ID: 4469
The caml-set-compile-command is very annoying when you use ocamlbuild since as it does not find a makefile, each time you open a new file it overwrites the compilation command you issued before. A solution is attached.
Comment author: @dbuenzli
Thanks for the changes in ocaml 3.11 beta but the feature is still annoying as it now looks for a _build directory or _tags file only in the current's source file directory.
Thus the problem remains with the following kind of project structure, were both src/ and test/ have source files and compilations are intiated from the project's root directory.
For me either drop the feature (I personnaly never use it) or look for makefiles, _build, _tags up to the root of the source file path.