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

Stephen Leake stephen_leake at stephe-leake.org
Fri Jan 29 02:08:47 PST 2010


"georg at w3x.org" <georg at w3x.org> writes:

> 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!

I finally got inspired to fix this. It will be in the next Emacs
release, and is in the latest Ada mdoe release (4.01)

-- 
-- Stephe



More information about the Emacs-ada-mode mailing list