GNU bug report logs - #38591
26.1; ada-mode 6.2.1 ada-align occasionally misaligns named parameter associations

Previous Next

Packages: ada-mode, emacs;

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

Date: Fri, 13 Dec 2019 13:13: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


View this message in rfc822 format

From: Ludovic Brenta <ludovic <at> ludovic-brenta.org>
To: 38591 <at> debbugs.gnu.org
Cc: ada-mode-users <at> nongnu.org
Subject: bug#38591: 26.1; ada-mode 6.2.1 ada-align occasionally misaligns named parameter associations
Date: Fri, 13 Dec 2019 14:12:00 +0100
X-Debbugs-CC: ada-mode-users <at> nongnu.org
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.




This bug report was last modified 5 years and 110 days ago.

Previous Next


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