emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#38566: closed (26.1; ada-mode 6.2.1 incorrect indentation with parti


From: GNU bug Tracking System
Subject: bug#38566: closed (26.1; ada-mode 6.2.1 incorrect indentation with partial parsing)
Date: Fri, 31 Jan 2020 14:10:02 +0000

Your message dated Fri, 31 Jan 2020 06:09:04 -0800
with message-id <address@hidden>
and subject line closed by ada-mode version 7.0.1
has caused the debbugs.gnu.org bug report #38566,
regarding 26.1; ada-mode 6.2.1 incorrect indentation with partial parsing
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
38566: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38566
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 26.1; ada-mode 6.2.1 incorrect indentation with partial parsing Date: Wed, 11 Dec 2019 15:41:20 +0100
X-Debbugs-CC: address@hidden
Package: emacs, ada-mode
Version: 26.1
Severity: minor

When we visit one of our larger source files which compiles and
is not yet modified, move point to after a "begin" keyword and hit
RET, ada-mode incorrectly re-indents the "begin" keyword and the
next (new and empty) line.

Expected:

      declare
procedure Action (Airspace : Env_Volume.T; Info : Curtain.Profile.Index.T) is
          [elided]
        end Action;
procedure Action_Airspaces is new Curtain.Profile.Index.Visit_Unskipped_Airspaces_G;
      begin* -- point is here initially; hit RET
        * -- point should come here after RET
Airspace_Entry_Times_Set.Empty (Airspace_First_Entry_Times, Profile_Query); -- The query causes the set to be initialised or resized if necessary.
        Action_Airspaces (Profile.Curtain, Profile_Query);
      end;

Actual:

      declare
procedure Action (Airspace : Env_Volume.T; Info : Curtain.Profile.Index.T) is
          [elided]
        end Action;
procedure Action_Airspaces is new Curtain.Profile.Index.Visit_Unskipped_Airspaces_G;
        begin -- incorrectly changed indentation after RET
          * -- point is here after RET
Airspace_Entry_Times_Set.Empty (Airspace_First_Entry_Times, Profile_Query); -- The query causes the set to be initialised or resized if necessary.
        Action_Airspaces (Profile.Curtain, Profile_Query);
      end;

If I forcibly disable partial parsing in this file, the bug disappears.

--
Ludovic Brenta.



--- End Message ---
--- Begin Message --- Subject: closed by ada-mode version 7.0.1 Date: Fri, 31 Jan 2020 06:09:04 -0800 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (windows-nt)
-- 
-- Stephe


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]