unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#33743: 26.1; ada-mode 6.0.0 indentation of comments before "then"
@ 2018-12-14 15:39 Ludovic Brenta
  2019-03-25 16:40 ` bug#33743: update Stephen Leake
  2019-03-25 16:40 ` Stephen Leake
  0 siblings, 2 replies; 3+ messages in thread
From: Ludovic Brenta @ 2018-12-14 15:39 UTC (permalink / raw)
  To: 33743; +Cc: ada-mode-users

Package: emacs, ada-mode
X-Debbugs-CC: ada-mode-users@nongnu.org

Hello,

With ada-mode 6.0.0, comments appearing on a line of their on before 
"then"
are indented like "then"; we think they should be indented one more 
level:

procedure Comment_Indentation is
begin
   if A
     -- This comment is indented correctly
     and then B
   -- This comment is indented incorrectly, should be as above
   then
     -- This comment is indented correctly
     null;
   elsif C
     -- This comment is indented correctly
     and then D
   -- This comment is indented incorrectly, should be as above
   then
     null;
   end if;
end Comment_Indentation;

This "incorrect" indentation is a change from ada-mode 5.2.1 which can
affect many lines in our large code base.  In 5.2.1, all comments are
indented in the same way.

I have browsed the ada-mode customization variables but did not see
which one, if any, allows us to customize this behavior.  (note: we
set ada-indent to 2).

--
Ludovic Brenta.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#33743: update
  2018-12-14 15:39 bug#33743: 26.1; ada-mode 6.0.0 indentation of comments before "then" Ludovic Brenta
@ 2019-03-25 16:40 ` Stephen Leake
  2019-03-25 16:40 ` Stephen Leake
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Leake @ 2019-03-25 16:40 UTC (permalink / raw)
  To: 33743

Fixed in ada-mode 6.1.0 in GNU ELPA.
-- 
-- Stephe





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#33743: update
  2018-12-14 15:39 bug#33743: 26.1; ada-mode 6.0.0 indentation of comments before "then" Ludovic Brenta
  2019-03-25 16:40 ` bug#33743: update Stephen Leake
@ 2019-03-25 16:40 ` Stephen Leake
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Leake @ 2019-03-25 16:40 UTC (permalink / raw)
  To: 33743-close


-- 
-- Stephe





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-03-25 16:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-14 15:39 bug#33743: 26.1; ada-mode 6.0.0 indentation of comments before "then" Ludovic Brenta
2019-03-25 16:40 ` bug#33743: update Stephen Leake
2019-03-25 16:40 ` 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).