unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
To: 34029@debbugs.gnu.org
Cc: ada-mode-users@nongnu.org
Subject: bug#34029: 26.1; ada-mode 6.0.0 and multi-line trailing comments
Date: Thu, 10 Jan 2019 14:19:11 +0100	[thread overview]
Message-ID: <e4a46fc001180b9b8bdd572e306f9963@ludovic-brenta.org> (raw)

Package: Emacs
Version: 26.1
X-Debbugs-CC: ada-mode-users@nongnu.org
Severity: minor

Hello,

When reindenting the code below, ada-mode indents the line marked
[WRONG], aligning its comment delimiter is aligned under that of the
preceding line.  It is my understanding that possibly "this is a
feature, not a bug" and that inserting a blank line after the
"warning" line corrects the probkel but we'd like to have an option
to disable this behavior; we have a very large code base and mass-
reindentation can break some carefully-formatted comments without
the developer noticing.

As an additional bad side-effect, comments like [WRONG] below can
easily exceed the line length limit in our coding standard.

Thanks for considering.

procedure Foo is
begin
   Call_This_Other_Procedure (Bar, Baz); -- warning: finalizes Baz
                                         -- [WRONG] The reason why we 
need to call this procedure as the first step is because...
   Now_Do_The_Real_Processing;
end Foo;

-- 
Ludovic Brenta.





             reply	other threads:[~2019-01-10 13:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-10 13:19 Ludovic Brenta [this message]
2019-08-18 16:49 ` bug#34029: Fixed in ada-mode 6.1.0 Stephen Leake
2019-08-18 16:49 ` bug#34029: close 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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e4a46fc001180b9b8bdd572e306f9963@ludovic-brenta.org \
    --to=ludovic@ludovic-brenta.org \
    --cc=34029@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 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).