all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
To: 36278@debbugs.gnu.org
Cc: ada-mode-users@nongnu.org
Subject: bug#36278: 26.1; ada-mode 6.0.0 auto-casing no longer honors the casing of the declaration
Date: Tue, 18 Jun 2019 13:59:11 +0200	[thread overview]
Message-ID: <17006e0102dac306fd317b8109783309@ludovic-brenta.org> (raw)

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

Hello,

In ada-mode 5.2, auto-casing honors the casing of the declaration of an
entity but ada-mode 6.2 does not; instead it forces the user to create
a casing exception on every declaration that uses "non-standard" casing.
In our large code base this causes frustration as programmers often
introduce local upper-case acronyms to shorten some names, e.g.

procedure A (The_Flight : in Flight.T) is
    FTFX : Flight.Fixed_Info.T renames The_Flight.Fixed_Info;
begin
    FTFX.Foo := True;
end A;

Supposing a procedure A that is hundreds of lines long with dozens of
uses of FTFX, ada-mode 6.0 is unhelpful when forcing the casing down
to Ftfx.  Adding casing exceptions for such local uses is not really
appealing.

Would it be difficult to use casing-as-declaration by default with the
new parser in 6.x?

-- 
Ludovic Brenta.





             reply	other threads:[~2019-06-18 11:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-18 11:59 Ludovic Brenta [this message]
2019-06-22 19:22 ` bug#36278: update Stephen Leake
2019-06-23 17:19 ` Stephen Leake
2019-07-13 21:29 ` Stephen Leake
2019-08-18 16:58 ` bug#36278: Fixed in ada-mode 6.1.1 Stephen Leake
2019-08-18 16:58 ` bug#36278: 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

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

  git send-email \
    --in-reply-to=17006e0102dac306fd317b8109783309@ludovic-brenta.org \
    --to=ludovic@ludovic-brenta.org \
    --cc=36278@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.