OCamlPro / ocp-indent

Indentation tool for OCaml, to be used from editors like Emacs and Vim.
http://www.typerex.org/ocp-indent.html
Other
200 stars 63 forks source link

Protect against extension-less buffer file names #230

Closed jberdine closed 7 years ago

jberdine commented 7 years ago

I have run across errors when invoking ediff-merge-files-with-ancestor on .ml files. The issue seems to be that the merge buffer has a file name that does not have an extension, which causes file-name-extension to raise. This patch dodges but does not actually solve this issue, in that it results in skipping the ocp-indent setup in such cases.

AltGr commented 7 years ago

Thanks!