GNU bug report logs - #33746
26.1; ada-mode 6.0.0 indentation of comments in a case statement

Previous Next

Packages: ada-mode, emacs;

Reported by: Ludovic Brenta <ludovic <at> ludovic-brenta.org>

Date: Fri, 14 Dec 2018 17:23:01 UTC

Severity: minor

Found in version 26.1

Done: Stephen Leake <stephen_leake <at> stephe-leake.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 33746 <at> debbugs.gnu.org (full text, mbox):

From: Simon Wright <simon.j.wright <at> mac.com>
To: Ludovic Brenta <ludovic <at> ludovic-brenta.org>
Cc: 33746 <at> debbugs.gnu.org, ada-mode-users <at> nongnu.org
Subject: Re: [Ada-mode-users] bug#33746: 26.1; ada-mode 6.0.0 indentation of
 comments in a case statement
Date: Fri, 14 Dec 2018 18:24:17 +0000
[Message part 1 (text/plain, inline)]
On 14 Dec 2018, at 17:22, Ludovic Brenta <ludovic <at> ludovic-brenta.org> wrote:
> 
> Package: emacs, ada-mode
> X-Debbugs-CC: ada-mode-users <at> nongnu.org
> 
> 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.

[ludo-problems.adb (application/octet-stream, attachment)]
[ludo-problems-2.adb (application/octet-stream, attachment)]
[Message part 4 (text/plain, inline)]



This bug report was last modified 6 years and 57 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.