Subject: bug#33746: [Ada-mode-users] bug#33746: 26.1; ada-mode 6.0.0 indentation of comments in a case statement

From: Simon Wright <[email-masked]>
Date: Fri, 14 Dec 2018 18:24:17 +0000

On 14 Dec 2018, at 17:22, Ludovic Brenta <[email-masked]> wrote:
> 
> Package: emacs, ada-mode
> X-Debbugs-CC: [email-masked]
> 
> Hello,
> 
> Here is another minor indentation bug in ada-mode 6.0.0; note how
> the indentation of the two comments is inconsistent:
> 
> procedure When_Indentation is
> begin
>  case A is
>    when B =>
>      -- This comment is indented correctly
>      Foo;
>    -- This comment is indented incorrectly: should be as above
>  end case;
> end When_Indentation;

GPS goes too far the other way if you select (what was for me) the default, Indent comments => unchecked, Align comments on keywords checked; the same with both unchecked. ludo-problems.adb.

If I check just Indent comments, I get ludo-problems-2.adb.