Ada mode 5.1.4 produces this indentation when 'is' starts a new line in
a type declaration, even though 'record' is on the same line
(ada-indent-record-rel-type is the default 3):

   type A
     is new Ada.Streams.Root_Stream_Type with record
        Length : Natural := 0;
     end record;

GPS does this:
   type A
     is new Ada.Streams.Root_Stream_Type with record
      Length : Natural := 0;
   end record;

the record commponent and 'end record' are indented by 0 relative to
type.

I'd like to change Ada mode to always use ada-indent-record-rel-type for
the line containing 'record'; it does that now when 'record' starts the
line, or 'with' does. That would give (for the default setting):

   type A
      is new Ada.Streams.Root_Stream_Type with record
         Length : Natural := 0;
      end record;

Setting ada-indent-record-rel-type to 0 would then almost match GPS;

   type A
   is new Ada.Streams.Root_Stream_Type with record
      Length : Natural := 0;
   end record;

Comments?

-- 
-- Stephe

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

Reply via email to