Subject: 26.1; ada-mode 6.2.1 ada-align occasionally misaligns named parameter associations

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

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

In the following procedure call:

       Create_Update
         (The_F                  => New_F,
          Query                 => Query,
          S  => G (J),
          P                     => P,
          Route                   => R);

place point on the line containing The_Flight and do M-^ 
(delete-indentation)
then move point down then do C-c C-a (ada-align).  Actual result:

       Create_Update (The_F => New_F,
                      Query => Query,
                      S     => G (J),
                      P     => P,
                    Route   => R);

Note how the arrows are correctly aligned but the name of the last 
parameter
isn't; what is worse, the number of spaces between route and => is 
incorrect,
so fixing the problem requires manual intervention (C-c TAB does not 
suffice).

This happens only in a few cases.  I will send a complete source file 
that
reproduces, in private.

-- 
Ludovic Brenta.