[Emacs-ada-mode] Indentation of broken lines in parameter lines
Stephen Leake
stephen_leake at stephe-leake.org
Sat Nov 8 01:07:17 PST 2008
"Manuel Gomez" <mgrojo at gmail.com> writes:
> Hello,
>
> I find the ada-mode indentation pretty good except for the indentation
> of broken lines in parameter lists:
>
>
> with Very_Long_Name_Sample_Package;
>
> procedure Sample
> (Long_Long_Parameter_Name :
> Very_Long_Name_Sample_Package.T_Very_Very_Long_Type_Name;
> Other_Parameter : String) is
>
> begin
>
>
> Very_Long_Name_Sample_Package.Sample_Call
> (One_Parameter =>
> Very_Long_Name_Sample_Package.Very_Very_Long_Constant_Name,
> Another_Parameter => "Why is the call indented different!!!",
> Another_One => False);
>
> end Sample;
>
> ---------------------
>
> Shouldn't "Very_Long_Name_Sample_Package.T_Very_Very_Long_Type_Name;"
> be indented as a broken line in the same way used at the procedure
> call for "Very_Long_Name_Sample_Package.Very_Very_Long_Constant_Name"?
Yes, that would be consistent.
It's even worse if you use ada-format-paramlist; that puts the type
name back on the same line as the parameter.
> Is there a customization for this case?
No.
The key function here is ada-get-indent-paramlist. It looks like it would
be easy to add this case. Can you give it a try? I'm pretty busy at
the moment.
--
-- Stephe
More information about the Emacs-ada-mode
mailing list