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

Document the differences between tuareg and caml-mode #298

Open
bbatsov opened this issue Sep 28, 2022 · 5 comments
Open

Document the differences between tuareg and caml-mode #298

bbatsov opened this issue Sep 28, 2022 · 5 comments

Comments

@bbatsov
Copy link
Contributor

bbatsov commented Sep 28, 2022

I've noticed this topic is generating a lot of confusion (see https://discuss.ocaml.org/t/tuareg-and-caml-modes-for-emacs-what-are-the-differences/10285). Both modes are very similar at a glance:

  • major mode
  • ocamldebug integration
  • top-level integration

It'd be really nice if the README explained what are the exact advantages of tuareg over caml-mode. I know that the indentation is smarter and based on SMIE, but I'm not sure about the rest.

@Chris00
Copy link
Member

Chris00 commented Sep 28, 2022

I don't use caml-mode so cannot really compare. (IMHO, the two should be merged — I cannot do it due to lack of time.)

@bbatsov
Copy link
Contributor Author

bbatsov commented Sep 28, 2022

@monnier Are you familiar with the differences?

IMHO, the two should be merged — I cannot do it due to lack of time.

Yeah, I think that'd be prudent. I'm still a bit confused by the dependency that tuareg has on caml-mode, as it seems it uses very little things from it. Perhaps the easiest path forward would be to deprecated caml-mode and start inlining whatever's needed in Tuareg.

@bbatsov
Copy link
Contributor Author

bbatsov commented Sep 28, 2022

caml-mode (available in NonGNU ELPA and MELPA) is used to display types (using the obsolete *.annot files), open a module for documentation,...

I'm guessing we can probably remove this usage of caml-types now that pretty much everyone's using Merlin or OCaml-LSP.

@Chris00
Copy link
Member

Chris00 commented Sep 29, 2022

I'm guessing we can probably remove this usage of caml-types now that pretty much everyone's using Merlin or OCaml-LSP.

That's certainly something to discuss (I tend to be somewhat conservative for the users 😁). We would also just copy the file.

@bbatsov
Copy link
Contributor Author

bbatsov commented Dec 11, 2022

Yeah, I guess copying caml-types.el would be a relatively simple thing to do, as at a glance the file is self-contained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants