[Emacs-ada-mode] procedure Test is null;

georg at w3x.org georg at w3x.org
Tue May 5 02:07:22 PDT 2009


On Monday 04 May 2009 at 23:24:03, Stephen Leake wrote:
> "georg at w3x.org" <georg at w3x.org> writes:
> > As you know, it is possible to write something like
> >
> >     procedure Test is null;
> >
> > which works without problems.
>
> By "works", I gather you mean the Emacs Ada mode indentation code
> handles it.
Yes - it is indented, and I can continue writing code, including newlines.

> Hmm. Is this really a useful use case? I guess if you are
> instantiating a generic, or have a local tagged type, this could
> happen.
In my case I instantiated a generic. In my current code I use this pretty 
often.

> As a workaround you can change it to:
>
> procedure Test is
>    procedure Test2 is
>    begin
>       null;
>    end Test2;
> begin
>    -- something else
> end Test;
>
> (Just pretend it's still Ada 95 :)
Yeah :) Actually, that's what I did, and it's fine. So this is definitely not 
an urgent/serious issue, I just wanted to report it...

> I'm not up to working on a real fix just now; that code can be pretty
> hairy.
I can imagine!

Regards, georg

-- 
We could change the world if god gave us the source.



More information about the Emacs-ada-mode mailing list