Hello,  

I gave it a (superficial) try. Here are a few comments. 
> * Improved syntax coloring

I find both your color scheme and tuareg's one to be particularly unreadable 
(too many colors and use of bold). Don't take it personally, these things are 
about taste. Anyway, would it be possible to include, in the distribution a 
theme matching the mode of OCaml's distribution ? 



> * Auto-completion of identifiers (experimental)



Disregarding the menu showing the possible completions, is it significantly 
different from 'dabbrev-expand ? Is it module-aware, couldn't for example 
complete the symbols from List.* ? Is it type-aware ? Also on my machine it 
seems to slowdown typing significantly. 

Finally, one thing I don't like is the way you ask me to change my build system 
to use your tools. I don't want to directly mention your tools. Mainly because 
I want to distribute the software and don't want to impose a dependency on your 
tools to my users/contributors and don't want to complexify my build system. 

Here is a suggestion. I think most people using emacs invoke their build system 
via a shell script (if they use ocamlbuild, here is an example [1]) or a 
Makefile. If these scripts/Makefiles are "correctly" written you can override 
their tools by setting (more or less) standard environment variables like 
(OCAMLC, OCAMLOPT, OCAMLBUILD). Now when I C-cc, I don't mind writing something 
like :

ocp-env ./build 

instead of :

./build 

Basically ocp-env just acts like env(1) and set various variables in the 
environment before invoking the script/Makefile. E.g.

OCAMLBUILD="ocamlbuild -ocamlc ocp-ocamlc.opt -ocamlopt ocp-ocamlopt.opt"
OCAMLC=ocp-ocamlc.opt
CAMLC=ocp-ocamlc.opt
OCAMLOPT=ocp-ocamlopt.opt
CAMLOPT=ocp-ocamlopt.opt

This could be just a shell-script around env(1), by the way. Now instead of 
instructing your users to change their Makefile/scripts just tell them to wrap 
their invocation with ocp-env. 

Another suggestion is to include the wrapper ocp-ocamlbuild defined as 
suggested above in OCAMLBUILD. Then, instead of instructing your users to 
change their myocamlbuild.ml that they may not even have (if they are just 
using a _tags file), just tell them to invoke ocp-ocamlbuild. Even simpler. 

Other than that the whole thing seems quite nice. I may see myself eventually 
using this. 

Thanks for the tools. 

Best,

Daniel

[1] http://erratique.ch/repos/cmdliner/tree/build?id=v0.9.0



-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to