> > But with my very limited knowledge of indentation problem, I do not
see
> > a case
> > where the indentation at the cursor position cannot be decided
(always ?
> > most of the time?) only by looking at  what is before the cursor.
>
> There are some cases, though. For instance, most people would want to
> align the following block of comments on the following 'else':
>
>
>   if Blah then
>        null;
>   --  otherwise, let's do something else
>   else
>       null;
>   end if;
>
> But the look-ahead is limited in this case. And by the way GPS does
not handle
> this case either.
Not at Eurocontrol :). The recommended way to comment the above in our
case is:
   if Blah then
       null;
   else
      -- Let's do something else
      null;
    end if;

So, I am happy with no look-ahead in this case :).

BTW,  looking at gps, effectively, I find no way to indicate that a
comment just
before an else is to be indented (or not) with the following else.
Which means that gps cannot automatically reformat the gnat code without
"destroying" the indentation ?
(gnat code contains such "-- comments before the else to be associated
with the else

Philippe
____

This message and any files transmitted with it are legally privileged and 
intended for the sole use of the individual(s) or entity to whom they are 
addressed. If you are not the intended recipient, please notify the sender by 
reply and delete the message and any attachments from your system. Any 
unauthorised use or disclosure of the content of this message is strictly 
prohibited and may be unlawful.

Nothing in this e-mail message amounts to a contractual or legal commitment on 
the part of EUROCONTROL, unless it is confirmed by appropriately signed hard 
copy.

Any views expressed in this message are those of the sender.

_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org

Reply via email to