* bug#38566: 26.1; ada-mode 6.2.1 incorrect indentation with partial parsing
@ 2019-12-11 14:41 Ludovic Brenta
2020-01-31 14:08 ` bug#38566: update Stephen Leake
2020-01-31 14:09 ` bug#38566: closed by ada-mode version 7.0.1 Stephen Leake
0 siblings, 2 replies; 3+ messages in thread
From: Ludovic Brenta @ 2019-12-11 14:41 UTC (permalink / raw)
To: 38566; +Cc: ada-mode-users
X-Debbugs-CC: ada-mode-users@nongnu.org
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#38566: update
2019-12-11 14:41 bug#38566: 26.1; ada-mode 6.2.1 incorrect indentation with partial parsing Ludovic Brenta
@ 2020-01-31 14:08 ` Stephen Leake
2020-01-31 14:09 ` bug#38566: closed by ada-mode version 7.0.1 Stephen Leake
1 sibling, 0 replies; 3+ messages in thread
From: Stephen Leake @ 2020-01-31 14:08 UTC (permalink / raw)
To: 38566
fixed in 7.0.1
--
-- Stephe
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#38566: closed by ada-mode version 7.0.1
2019-12-11 14:41 bug#38566: 26.1; ada-mode 6.2.1 incorrect indentation with partial parsing Ludovic Brenta
2020-01-31 14:08 ` bug#38566: update Stephen Leake
@ 2020-01-31 14:09 ` Stephen Leake
1 sibling, 0 replies; 3+ messages in thread
From: Stephen Leake @ 2020-01-31 14:09 UTC (permalink / raw)
To: 38566-close
--
-- Stephe
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-01-31 14:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-11 14:41 bug#38566: 26.1; ada-mode 6.2.1 incorrect indentation with partial parsing Ludovic Brenta
2020-01-31 14:08 ` bug#38566: update Stephen Leake
2020-01-31 14:09 ` bug#38566: closed by ada-mode version 7.0.1 Stephen Leake
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).