Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emacs mode : caml-set-compile-command is annoying #4469

Closed
vicuna opened this Issue Dec 21, 2007 · 2 comments

Comments

Projects
None yet
2 participants
@vicuna
Copy link
Collaborator

commented Dec 21, 2007

Original bug ID: 4469
Reporter: @dbuenzli
Assigned to: @damiendoligez
Status: closed (set by @damiendoligez on 2013-07-09T13:45:35Z)
Resolution: fixed
Priority: normal
Severity: tweak
Version: 3.10.0
Target version: 4.01.0+dev
Fixed in version: 4.01.0+dev
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @dbuenzli

Bug description

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.

Best,

Daniel

diff emacs/caml.el emacs/caml.el.old
571c571
< ;(add-hook 'caml-mode-hook 'caml-set-compile-command)


(add-hook 'caml-mode-hook 'caml-set-compile-command)

@vicuna

This comment has been minimized.

Copy link
Collaborator Author

commented Oct 27, 2008

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.

project/build.sh
project/_tags
project/src
project/tests

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.

Best,

Daniel

@vicuna

This comment has been minimized.

Copy link
Collaborator Author

commented Jul 9, 2013

Comment author: @damiendoligez

Fixed in 4.01 branch (rev 13882)

@vicuna vicuna closed this Jul 9, 2013

@vicuna vicuna added this to the 4.01.0 milestone Mar 14, 2019

@vicuna vicuna added the bug label Mar 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.