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

Out of range since emacs 28 #320

Open bmourad01 opened 2 years ago

bmourad01 commented 2 years ago

The following line seems to be the culprit with an out of range error when running ocp-indent-buffer:

https://github.com/OCamlPro/ocp-indent/blob/7c4d434132cebc15a8213c8be9e7323692eb0a2b/tools/ocp-indent.el#L139

A fix that seems to work for me is:

(ocp-indent-region 1 (buffer-size))