From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Code formatting Date: Sun, 31 Jul 2016 00:44:26 +0200 Message-ID: <871t2aagqd.fsf_-_@gnu.org> References: <20160729082357.17501-1-david@craven.ch> <87lh0kxncf.fsf@gnu.org> <20160730085741.GC23346@solar> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTczk-0002FS-IV for guix-devel@gnu.org; Sat, 30 Jul 2016 18:44:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bTcze-0006dc-RD for guix-devel@gnu.org; Sat, 30 Jul 2016 18:44:35 -0400 In-Reply-To: <20160730085741.GC23346@solar> (Andreas Enge's message of "Sat, 30 Jul 2016 10:57:41 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Andreas Enge Cc: guix-devel@gnu.org, David Craven Andreas Enge skribis: > On Fri, Jul 29, 2016 at 09:20:48PM +0200, Ludovic Court=C3=A8s 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 =E2=80=98u=E2=80=99 of =E2=80=98substitu= te*=E2=80=99. > > 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 =E2=80=98f=E2=80=99; the first option is pr= eferred. > So I misunderstood, and it is actually > (function 1 > 2 > 3) > in the first case? Bad. See and the rest of the code base. Bonus to whoever posts indentation rules for their favorite editor! :-) Ludo=E2=80=99.