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

Tuncer Ayaz tuncer.ayaz@REDACTED
Mon Aug 26 13:34:09 CEST 2013


On Mon, Aug 26, 2013 at 1:25 PM, Tuncer Ayaz wrote:
> 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).

Sorry, that should of course be (C-c C-q) instead.

> 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