From: Ludovic Brenta <ludovic@ludovic-brenta.org>
To: 33743@debbugs.gnu.org
Cc: ada-mode-users@nongnu.org
Subject: bug#33743: 26.1; ada-mode 6.0.0 indentation of comments before "then"
Date: Fri, 14 Dec 2018 16:39:09 +0100 [thread overview]
Message-ID: <cf7cf95c34d1019f6c315dadf9e3df4b@ludovic-brenta.org> (raw)
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.
next reply other threads:[~2018-12-14 15:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-14 15:39 Ludovic Brenta [this message]
2019-03-25 16:40 ` bug#33743: update Stephen Leake
2019-03-25 16:40 ` Stephen Leake
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cf7cf95c34d1019f6c315dadf9e3df4b@ludovic-brenta.org \
--to=ludovic@ludovic-brenta.org \
--cc=33743@debbugs.gnu.org \
--cc=ada-mode-users@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.