Andreas Enge <andr...@enge.fr> skribis:

> On Fri, Jul 29, 2016 at 09:20:48PM +0200, Ludovic Courtès wrote:
>> > +       (modify-phases %standard-phases
>> > +         (add-after 'configure 'patch-bin-sh
>> > +           (lambda _
>> > +             (substitute* '("qtbase/config.status"
>> > +                            "qtbase/configure"
>> > +                            "qtbase/mkspecs/features/qt_functions.prf"
>> > +                            "qtbase/qmake/library/qmakebuiltins.cpp")
>> > +                          (("/bin/sh") (which "sh")))
>>                              ^
>> This should be aligned with the ‘u’ of ‘substitute*’.
>
> I need indentation help again! I thought we either indented like this:
>
> (function 1
>           2
>           3)

Good.

> with the first argument following the procedure name; or like this:
>
> (function
>   1
>   2
>   3)
> with the first argument on the next line.

Works as well, but aligned with ‘f’; the first option is preferred.

> So I misunderstood, and it is actually
> (function 1
>   2
>   3)
> in the first case?

Bad.

See
<https://www.gnu.org/software/guix/manual/html_node/Formatting-Code.html>
and the rest of the code base.

Bonus to whoever posts indentation rules for their favorite editor!  :-)

Ludo’.

Reply via email to