Subject: 26.1; ada-mode 6.2.1: ada-align indents some parameter lists incorrectly

From: Ludovic Brenta <[email-masked]>
Date: Fri, 13 Dec 2019 13:41:13 +0100

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

Hello,

In the following code snippet:

package Brol is

   procedure Inner_Proc
     (A : in Integer;
      Long_Name : in Boolean;
      C : in Natural) is null;

end Brol;

Go to the line declaring parameter A and do M-^ (delete-indentation).
Move point after the opening parenthese.
Do C-c C-a (ada-align).  This results in mis-indented lines:

package Brol is

   procedure Inner_Proc (A         : in Integer;
                       Long_Name : in Boolean;
                       C         : in Natural) is null;

end Brol;

which C-c TAB corrects, so this is another example of ada-mode knowing
how to indent but failing to do so on the first attempt.

-- 
Ludovic Brenta.