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

Previous Next

Packages: emacs, ada-mode;

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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 33746 in the body.
You can then email your comments to 33746 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to ada-mode-users <at> nongnu.org, bug-gnu-emacs <at> gnu.org:
bug#33746; Package emacs, ada-mode. (Fri, 14 Dec 2018 17:23:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ludovic Brenta <ludovic <at> ludovic-brenta.org>:
New bug report received and forwarded. Copy sent to ada-mode-users <at> nongnu.org, bug-gnu-emacs <at> gnu.org. (Fri, 14 Dec 2018 17:23:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Brenta <ludovic <at> ludovic-brenta.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.1; ada-mode 6.0.0 indentation of comments in a case statement
Date: Fri, 14 Dec 2018 18:22:01 +0100
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;

-- 
Ludovic Brenta.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#33746; Package emacs, ada-mode. (Fri, 14 Dec 2018 18:29:01 GMT) Full text and rfc822 format available.

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)]



Reply sent to Stephen Leake <stephen_leake <at> stephe-leake.org>:
You have taken responsibility. (Mon, 25 Mar 2019 16:43:02 GMT) Full text and rfc822 format available.

Notification sent to Ludovic Brenta <ludovic <at> ludovic-brenta.org>:
bug acknowledged by developer. (Mon, 25 Mar 2019 16:43:03 GMT) Full text and rfc822 format available.

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

From: Stephen Leake <stephen_leake <at> stephe-leake.org>
To: 33746-close <at> debbugs.gnu.org
Subject: update
Date: Mon, 25 Mar 2019 08:42:24 -0800
-- 
-- Stephe




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#33746; Package emacs, ada-mode. (Mon, 25 Mar 2019 16:55:02 GMT) Full text and rfc822 format available.

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

From: Stephen Leake <stephen_leake <at> stephe-leake.org>
To: 33746 <at> debbugs.gnu.org
Subject: update
Date: Mon, 25 Mar 2019 08:42:01 -0800
Fixed in ada-mode 6.1.0 in GNU ELPA
-- 
-- Stephe




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 23 Apr 2019 11:24:04 GMT) Full text and rfc822 format available.

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.