Subject: bug#33743: closed (update)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 25 Mar 2019 16:42:02 +0000

Your bug report

#33743: 26.1; ada-mode 6.0.0 indentation of comments before "then"

which was filed against the emacs, ada-mode package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
33743: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=33743
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: update
From: Stephen Leake <[email-masked]>
To: [email-masked]
Date: Mon, 25 Mar 2019 08:40:58 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

-- 
-- Stephe

Subject: 26.1; ada-mode 6.0.0 indentation of comments before "then"
From: Ludovic Brenta <[email-masked]>
To: [email-masked]
Date: Fri, 14 Dec 2018 16:39:09 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Package: emacs, ada-mode
X-Debbugs-CC: [email-masked]

Hello,

With ada-mode 6.0.0, comments appearing on a line of their on before 
"then"
are indented like "then"; we think they should be indented one more 
level:

procedure Comment_Indentation is
begin
   if A
     -- This comment is indented correctly
     and then B
   -- This comment is indented incorrectly, should be as above
   then
     -- This comment is indented correctly
     null;
   elsif C
     -- This comment is indented correctly
     and then D
   -- This comment is indented incorrectly, should be as above
   then
     null;
   end if;
end Comment_Indentation;

This "incorrect" indentation is a change from ada-mode 5.2.1 which can
affect many lines in our large code base.  In 5.2.1, all comments are
indented in the same way.

I have browsed the ada-mode customization variables but did not see
which one, if any, allows us to customize this behavior.  (note: we
set ada-indent to 2).

--
Ludovic Brenta.