[erlang-bugs] erlang.el mis-indents whole-buffer selection

Tuncer Ayaz <>
Mon Aug 26 13:25:41 CEST 2013

Previously it was just a certain[1] function in rebar.erl which got
mis-indented when you did a whole-buffer indent, but now there's also
a second[2] function which gets mis-indented.

In both cases indenting the function itself separately works, and the
bug happens if you select the whole buffer and indent that with
erlang.el (C-x C-q).

I'm using Emacs 24.3.1 with latest erlang.el from maint.

Is it possible to fix this in the existing indenter?

[1] https://github.com/rebar/rebar/blob/620c4b01c/src/rebar.erl#L318-L365
[2] https://github.com/rebar/rebar/blob/620c4b01c/src/rebar_erlc_compiler.erl#L92-L112

More information about the erlang-bugs mailing list