ocaml / tuareg

Emacs OCaml mode
GNU General Public License v3.0
363 stars 79 forks source link

Find alternate file doesn't seem to care about tuareg-other-file-alist #280

Closed mattiasdrp closed 2 years ago

mattiasdrp commented 2 years ago

There's a custom variable defined in tuareg.el :

https://github.com/ocaml/tuareg/blob/04f5ab6be9ae1c594bab359819dbaf708ae57fda/tuareg.el#L251-L261

If I read it correctly, when tuareg sees file.pp.ml it should look for file.mli and go to it if it exists or create it.

Now, this is the behaviour I have:

image

After hitting C-c C-a

image

As you can see, it doesn't look for a.mli and tries to create a.pp.mli which is not the expected behaviour.

The thing is I wanted to edit tuareg-other-file-alist but it's not even accessible from M-x customize-group <enter> tuareg

You can replicate the bug by doing the following:

mattiasdrp commented 2 years ago

Thanks :-)